Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

URL encoding for nginx rewrites (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>