Nginx Lowercase URL and Redirection
mustafa.chapal
nginx-forum at forum.nginx.org
Sat Apr 18 15:05:36 UTC 2020
Hi,
I am facing two issues.
First, URLs like www.example.com/new-arrivalS which include a character like
hyphen are not triggering on the following location.
Second, URLs like www.example.com/dealS?p=2 get redirected to
www.example.com/deals instead of www.example.com/deals?p=2
location ~ [A-Z] {
return 307 $scheme://$host$my_uri_to_lowercase;
}
Kindly help me resolve both the issues.
Thank you
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287707,287707#msg-287707
More information about the nginx
mailing list