Nginx Rewrite

ntamblyn nginx-forum at
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 

you click a the change language button and the url changes to

so i would like to rewrite that to 

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:,256479,256479#msg-256479

More information about the nginx mailing list