Rewrite automatically unencodes question mark.

jimishjoban nginx-forum at nginx.us
Wed Aug 8 11:08:11 UTC 2012


Hello,

I have this rewrite rule.

rewrite ^(.+)$ $url? permanent;

where $url is
"http://example.com/ez/ciaapkznke/&subid1=1&lnkurl=http://www.someotherwebsite.com/books%3Faffid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo"

However its redirected to 

where $url is
"http://example.com/ez/ciaapkznke/&subid1=1&lnkurl=http://www.someotherwebsite.com/books?affid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo"

%3F got changed to ? which i dont intend to...

Any help?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229436,229436#msg-229436



More information about the nginx mailing list