4 messages in ru.sysoev.nginxRe: rewrite help
FromSent OnAttachments
jeff emmingerMay 29, 2008 12:10 pm 
jeff emmingerMay 29, 2008 12:23 pm 
jeff emmingerMay 29, 2008 12:47 pm 
jeff emmingerMay 29, 2008 1:25 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: rewrite helpActions...
From:jeff emminger (jemm@public.gmane.org)
Date:May 29, 2008 12:23:48 pm
List:ru.sysoev.nginx

Also if it matters, this is a php URL being handled by fastcgi.

How can I rewrite all:

/subscribe?foo=bar

into

/subscribe/?foo=bar

(note the trailing slash)

I've tried variations on this with no luck:

location / { root /var/www/docs/site.com/secure; index index.html index.htm index.php; rewrite ^/subscribe\?(.*) /subscribe/?$1 permanent; }

location /subscribe { index index.php; rewrite ^/subscribe\?(.*) /?$1 permanent; }