Welcome! Log In Create A New Profile

Advanced

Re: Rewriting uri as querystring using nginx?

António P. P. Almeida
February 23, 2012 11:04AM
On 23 Fev 2012 06h45 CET, nginx-forum@nginx.us 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

To escape you need to do a capture.

rewrite ^(.*)$ http://domain2?path=$1;

--- appa

_______________________________________________
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: 270
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