RewriteCond %{REQUEST_URI} how to in nginx?

Merlin merlin at
Sat Nov 22 04:12:42 MSK 2008

That is not a rewrite rule, it is a rewrite condition.  The rule is the
first RewriteRule after the condition.  Without the rule and all the
conditions that apply to it, you won't be able to convert it.

On Fri, Nov 21, 2008 at 2:48 PM, Joe Shang <joe.shang at> wrote:

> Sorry if this is a dumb question, but a newb to nginx rewrites, been
> trying to convert ALOT of websites over to nginx.
> Though this one:
> RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
> How would this translate to nginx?
> Probably doesn't matter?
> Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list