Question : htaccess change url to lowercase using RewriteMap

I would like the below code to convert the new url to lowercase,

I have found some examples, but can't seem to get it to work.
http://balajin.net/blog/archives/2005/10/07/using_mod_rewrite_to_convert_u.html
1:
2:
RewriteCond %{QUERY_STRING} ^param=([a-zA-Z0-9_-]*)$
RewriteRule ^index\.php$ /ff/%1? [R,L]

Answer : htaccess change url to lowercase using RewriteMap

Hi,

RewriteEngine On
RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

Note that the RewriteMap directive can only be used in the httpd.conf and not in a .htaccess.

Cheers,

Hades666

 

Random Solutions  
 
programming4us programming4us