RewriteEngine On RewriteMap lc int:tolower RewriteCond %{REQUEST_URI} [A-Z] RewriteRule ^(.*)$ /${lc:$1} [R=301,L]
This code sets up a rewrite map called “lc” that converts all uppercase characters to lowercase. Then, it checks if the requested URI contains any uppercase characters and performs a 301 redirect to the lowercase version of the URL.
Make sure that the Apache mod_rewrite module is enabled for this to work. If you’re using a different web server, the process may vary slightly, but the concept remains the same.
you can verify your urls on this redirect checker tool