Problem with simple rewrite rule

Per Hans Hansen pehaha at
Mon Mar 10 00:51:00 MSK 2008

On Sun, Mar 9, 2008 at 8:24 PM, Tieg Zaharia <tieg.zaharia at> wrote:

> I think the first problem is that you're redirecting to wiki.php instead
> of to the "/WIKIPAGE" url. As I found out last week, replacing query strings
> in nginx can be tricky. Does this work? (it won't work with more query
> string params)
> server {
>   if ($query_string ~ ^wiki=(.*)$) {
>     rewrite ^(.*)$ /$1 break;
>   }
> }

Hi, thanks for your response. I tried your proposed config change, but it
still does not work. And there's only one query string.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list