RewriteCond command

António P. P. Almeida appa at perusio.net
Wed Feb 2 05:25:49 MSK 2011


On 2 Fev 2011 02h11 WET, nginx-forum at nginx.us 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 an Apache mod_rewrite thing.

There's no equivalent in Nginx. It uses a saner, more clear approach
of a *single* condition + rule in Apache terms.

Cf. http://wiki.nginx.org/HttpRewriteModule

--- appa




More information about the nginx mailing list