RewriteCond %{REQUEST_URI} how to in nginx?
Igor Sysoev
is at rambler-co.ru
Sat Nov 22 11:35:06 MSK 2008
On Fri, Nov 21, 2008 at 04:48:30PM -0600, Joe Shang 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?
You should inverse RewriteCond logic (making it clear to human):
location / {
# !/(index\.php|\.css)
...
}
location ~ /index\.php$ {
...
}
location ~ \.css$ {
...
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list