Hi
Trying to use mod_rewrite to convert all filenames in a subdirectory to lowercase (they may also include other characters, or numbers). Also I want to make sure that they 301 for search engine goodness.
Witness me flail and fail:
Have tried:
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteRule ^thisdirectory/([0-9]+)/^[\/]*(.*)$ /thisdirectory/([0-9]+)/${lowercase:$1} [R,L,PT]
and variations.
the (already rewritten with other rules) url format it is working with is:
http://www.my.com/thisdirectory/12145/PLEASE-Convert-me.html
Cluestick, anyone?