<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Why did you escape the question mark?<br></div><div class="gmail_extra"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Thu, Feb 5, 2015 at 6:16 PM, ntamblyn <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How can i turn this into a rewrite i have include what i have tried<br>
<br>
for example you have <a href="http://www.example.com/test/c_index.shtml" target="_blank">www.example.com/test/c_index.shtml</a><br>
<br>
you click a the change language button and the url changes to<br>
www.example/com/test/c_index.shtml?change_lang<br>
<br>
so i would like to rewrite that to <a href="http://www.example.com/test/e_index.shtml" target="_blank">www.example.com/test/e_index.shtml</a><br>
<br>
I have tried<br>
<br>
rewrite  /test/c_(.*)\?change_lang   /test/e_$1  redirect;<br>
<br>
but that doesnt work<br>
<br>
Any help would be much appreciated<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,256479,256479#msg-256479" target="_blank">http://forum.nginx.org/read.php?2,256479,256479#msg-256479</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>