Welcome! Log In Create A New Profile

Advanced

URL encoding for nginx rewrites

September 03, 2014 02:08PM
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
Subject Author Posted

URL encoding for nginx rewrites

robinpanicker September 03, 2014 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready