Redirecting All Uppercase URLs to lowercase URL


#1

I already googled this but couldn't find a solution that would work for me or maybe I couldn't implement the solutions properly.
I am facing SEO issues on my site because of uppercase URLs and so I want to redirect all the traffic with uppercase characters in the URL to all lowercase character URL.

Probably the googled solutions aren't working because I already have some code in my htaccess file.
This is my htaccess code -

Options +FollowSymLinks
RewriteEngine On
 
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f


RewriteRule ^contact/$ ./contact.php?page=worldlist
RewriteRule ^world-currencies/$ ./list.php?page=worldlist
RewriteRule ^cryptocurrencies/$ ./list.php?page=cryptolist
RewriteRule ^([a-zA-Z0-9]+)/$ ./index.php?from=$1&to=$2&val=$3&page=singlef
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ ./index.php?from=$1&to=$2&val=$3&page=singleft
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([.\d]+)+/$ ./index.php?from=$1&to=$2&val=$3&page=singleftv

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:

I have to somehow add the new code along with this code to keep my web application working.
else if you have some other method to do it I would be grateful to you.

Thank You,


closed #2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.