Nginx Rewrite

ntamblyn nginx-forum at nginx.us
Thu Feb 5 17:16:27 UTC 2015


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



More information about the nginx mailing list