I want my urls that contain uppercase characters to be redirected to lowercase url's. Unfortunatly i don't have access to the httpd.config file. So i tried this method to rewrite the urls with the htaccess file: http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html . But it adds extra / because it's a loop and also it doesn't work (504 error) when the url consists of more than two parts (ex www.mysite.com/part1/part2/part3/ )
How can i fix this or is there an other/better method?
If you look at your Apache error log (which is most likely huge thanks to this thing), you should see something along the lines of:
Everything goes well, until the path info postfix is applied. I am not sure why that is, but I know that applying the
DPI
flag to the 26 RewriteRules that transform uppercase to lowercase will most likely solve your issue.More information about the
DPI
flag can be found here and the general documentation of mod_rewrite can be found here.