6 messages in ru.sysoev.nginxRe: nginx rewrite
FromSent OnAttachments
Paul GreenwoodFeb 15, 2009 12:51 pm 
Igor SysoevFeb 16, 2009 12:50 am 
Paul GreenwoodFeb 16, 2009 7:35 am 
Paul GreenwoodFeb 17, 2009 10:58 am 
Igor SysoevFeb 17, 2009 11:19 am 
MerlinFeb 17, 2009 1:56 pm 
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: nginx rewriteActions...
From:Paul Greenwood (atta@gmail.com)
Date:Feb 17, 2009 10:58:54 am
List:ru.sysoev.nginx

I'm sorry I am new to nginx but what does value $args hold and where does the value come from?

On Mon, Feb 16, 2009 at 1:50 AM, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Feb 15, 2009 at 01:52:19PM -0700, Paul Greenwood wrote:

How would you use regx in nginx for this:

RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]

I'm not sure to how to do this?

location / { if ($args = "") { rewrite ^ /index.php?title=$request_uri? last; } }

location /Special:Search { rewrite ^ /index.php?title=$request_uri?; }