Problem with simple rewrite rule
Per Hans Hansen
pehaha at gmail.com
Mon Mar 10 10:11:45 MSK 2008
I didnt do a full reload, but i've tried now and it still doesn't work. I'm
taken to the URL that i want to (/WIKIPAGE) but i'm getting a 404.
Sun, Mar 9, 2008 at 11:19 PM, Tieg Zaharia <tieg.zaharia at gmail.com> wrote:
> 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.phpinstead 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/20080310/aa0aa796/attachment.html>
More information about the nginx
mailing list