Nginx Lowercase URL and Redirection

mustafa.chapal nginx-forum at
Sat Apr 18 15:05:36 UTC 2020


I am facing two issues.

First, URLs like which include a character like
hyphen are not triggering on the following location.

Second, URLs like get redirected to instead of

location ~ [A-Z] {
      return 307 $scheme://$host$my_uri_to_lowercase;

Kindly help me resolve both the issues.

Thank you

Posted at Nginx Forum:,287707,287707#msg-287707

More information about the nginx mailing list