3 messages in ru.sysoev.nginxRe: RewriteCond %{REQUEST_URI} how to...
FromSent OnAttachments
Joe ShangNov 21, 2008 2:48 pm 
MerlinNov 21, 2008 5:12 pm 
Igor SysoevNov 22, 2008 12:34 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: RewriteCond %{REQUEST_URI} how to in nginx?Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Nov 22, 2008 12:34:43 am
List:ru.sysoev.nginx

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$ { ... }