Problem with simple rewrite rule

Tieg Zaharia tieg.zaharia at gmail.com
Mon Mar 10 01:19:39 MSK 2008


Did you do a full "reload" of the nginx conf? Or just restart? Also, what's
the resulting url that it takes you too?

On Sun, Mar 9, 2008 at 5:51 PM, Per Hans Hansen <pehaha at gmail.com> wrote:

> 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/5f373bc5/attachment.html>


More information about the nginx mailing list