Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.2.3 Rewrite Issue

Maxim Dounin
August 09, 2012 10:30AM
Hello!

On Thu, Aug 09, 2012 at 05:26:40PM +0300, Nginx User wrote:

> Ha! Got it. I was trying to preserve arguments indeed.
>
> I take it this is related to needing to add a "?" to the end of such
> to prevent the args being appended again. Right?

For sure.

Maxim Dounin

>
>
>
> On 9 August 2012 17:20, Maxim Dounin <mdounin@mdounin.ru> wrote:
> > Hello!
> >
> > On Thu, Aug 09, 2012 at 05:13:53PM +0300, Nginx User wrote:
> >
> >> Wierd problem with Nginx 1.2.3 rewrites.
> >>
> >> See http://pastie.org/4433865 and note Line 30. The arg is part of the
> >> main url. Results in a 404 not found as the final url becomes
> >> "/test/index.php?x2_SID=41efad7adffaa9d25967dc913919cbc0?x2_SID=41efad7adffaa9d25967dc913919cbc0"
> >>
> >> Any cluees
> >
> > It's not clear what you are trying to do, but if you just want to
> > preserve arguments as is - there is no need to write anything
> > extra, just
> >
> > rewrite ^/test/index\.html$ /test/index.php last;
> >
> > Original request arguments (if any) will be preserved as is.
> >
> > Maxim Dounin
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx 1.2.3 Rewrite Issue

Nginx User August 09, 2012 10:16AM

Re: Nginx 1.2.3 Rewrite Issue

Maxim Dounin August 09, 2012 10:22AM

Re: Nginx 1.2.3 Rewrite Issue

Nginx User August 09, 2012 10:28AM

Re: Nginx 1.2.3 Rewrite Issue

Maxim Dounin August 09, 2012 10:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready