Welcome! Log In Create A New Profile

Advanced

Re: Nginx Rewrite

B.R.
February 05, 2015 01:14PM
Why did you escape the question mark?
---
*B. R.*

On Thu, Feb 5, 2015 at 6:16 PM, ntamblyn <nginx-forum@nginx.us> wrote:

> How can i turn this into a rewrite i have include what i have tried
>
> for example you have www.example.com/test/c_index.shtml
>
> you click a the change language button and the url changes to
> www.example/com/test/c_index.shtml?change_lang
>
> so i would like to rewrite that to www.example.com/test/e_index.shtml
>
> I have tried
>
> rewrite /test/c_(.*)\?change_lang /test/e_$1 redirect;
>
> but that doesnt work
>
> Any help would be much appreciated
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,256479,256479#msg-256479
>
> _______________________________________________
> 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 Rewrite

ntamblyn February 05, 2015 12:16PM

Re: Nginx Rewrite

B.R. February 05, 2015 01:14PM

Re: Nginx Rewrite

Francis Daly February 05, 2015 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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