Welcome! Log In Create A New Profile

Advanced

Re: rewrite save original url

September 21, 2010 04:13PM
I think you could do something like this:

[code]
# save old uri + arguments:
set $original_uri $uri$is_args$args;
# perform rewrite:
rewrite ^(.*)$ /new_uri/index.php;

# later on, in location defined downstream handler, add:
proxy_set_header X-Rewrite-URL $original_uri;
[/code]

Never try it out, but hope it helps!
Subject Author Posted

rewrite save original url

Arthur Blake September 21, 2010 03:26PM

Re: rewrite save original url

tqvn2004 September 21, 2010 04:13PM

Re: rewrite save original url

Maxim Dounin September 21, 2010 04:28PM

Re: rewrite save original url

Arthur Blake September 21, 2010 08:38PM

Re: rewrite save original url

pandy October 13, 2010 01:29PM

Re: rewrite save original url

pandy October 13, 2010 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready