Welcome! Log In Create A New Profile

Advanced

Re: How can I rewrite an url with GET parameters ?

Valentin V. Bartenev
March 26, 2014 12:26PM
On Wednesday 26 March 2014 12:09:27 skyice wrote:
> Hello,
>
> How can I have this : http://example.org/en/somepage.php
>
> For : http://example.org/somepage.php?locale=en
>
> ( locale=en is always present)
>
> Thanks.
>

location =/somepage.php {
rewrite ^ /$arg_locale/somepage.php? last;
}

--

wbr, Valentin V. Bartenev

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

How can I rewrite an url with GET parameters ?

skyice March 26, 2014 12:09PM

Re: How can I rewrite an url with GET parameters ?

Valentin V. Bartenev March 26, 2014 12:26PM

Re: How can I rewrite an url with GET parameters ?

skyice March 26, 2014 01:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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