Welcome! Log In Create A New Profile

Advanced

Re: Rewriting uri as querystring using nginx?

Edho Arief
February 23, 2012 02:12AM
On 2012-02-23 12:45, junius wang wrote:
> How do I rewrite URIs of the form
>
> http://domain1/one/two?three=four
>
> to
>
> http://domain2?path=http%3A%2F%2Fdomain1%2Fone%2Ftwo%3Fthree%3Dfour
>

Perhaps something like this:

rewrite ^ http://domain2?path=http://domain1$request_uri$is_args$args
permanent;

Not sure about the escapes though.

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

Rewriting uri as querystring using nginx?

junius wang February 23, 2012 12:45AM

Re: Rewriting uri as querystring using nginx?

Edho Arief February 23, 2012 02:12AM

Re: Rewriting uri as querystring using nginx?

António P. P. Almeida February 23, 2012 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
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