mod_rewrite lowercase filenames

Reply

Join Date: Sep 2005
Posts: 9
Reputation: bsmith is an unknown quantity at this point 
Solved Threads: 0
bsmith bsmith is offline Offline
Newbie Poster

mod_rewrite lowercase filenames

 
0
  #1
Oct 2nd, 2005
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]+)/${lowercase1} [R,L,PT]

and variations.
the (already rewritten with other rules) url format it is working with is:
http://www.my.com/thisdirectory/1214...onvert-me.html

Cluestick, anyone?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC