I have three conditions need to satisfy.
1.)if there is XXX folder in some path then display XXX stuff
2.)else if there is XXX folder in git then display XXX stuff from git 3.)if XXX folder doesn't exist in both the places above then go to some site.
So for first condition I make that path as Docroot ,so didn't write any rewrite conditions for that. For second condition I write
RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} !-d RewriteRule ####get the folder from GIT####
But I am not able to make it work for the third condition and I know that if ,else conditions won't work in 2.2 version. Please shed some light here.
Aucun commentaire:
Enregistrer un commentaire