URL encoding for nginx rewrites
robinpanicker
nginx-forum at nginx.us
Wed Sep 3 18:08:50 UTC 2014
Hello everyone.
I am using a rewrite similar to below
location /home {
rewrite ^/(.*) https://mysite.com/homepage/?next=/redirectionurl
redirect;
}
The issue is that nginx is not encoding the URL before it redirects.
So this is failing at the server that is receiving this request.
Can someone help me in encoding the rewritten URL.
Thanks a lot in advance
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253045,253045#msg-253045
More information about the nginx
mailing list