Created
June 16, 2021 11:21
-
-
Save TomCan/f8b79c527778ddc67c8c3c97b5cb37e7 to your computer and use it in GitHub Desktop.
Rewrite to lowercase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache Rewrite all requests to lowercase URLs | |
RewriteEngine On | |
RewriteMap lc int:tolower | |
RewriteCond %{REQUEST_URI} [A-Z] | |
RewriteRule (.*) ${lc:$1} [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment