RewriteCond command

Igor Sysoev igor at sysoev.ru
Wed Feb 2 13:01:13 MSK 2011


On Tue, Feb 01, 2011 at 09:11:03PM -0500, lifeisjustabout wrote:

> hi i've seen many example that answered this forum and they use
> RewriteCond but if i put that command i get error nginx 0.8.3  
> 
> RewriteCond %{request_uri} !^index\.php

This should be translated from Yoda backward style to nginx forward style:

   location = /index.php {
       ...
   }

   location / {
       ...
   }


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list