Problem with simple rewrite rule

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


On Sun, Mar 9, 2008 at 8:24 PM, Tieg Zaharia <tieg.zaharia at gmail.com> 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.

Per
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080309/6ffa8368/attachment.html>


More information about the nginx mailing list