| | |
mod_rewrite lowercase filenames
![]() |
•
•
Join Date: Sep 2005
Posts: 9
Reputation:
Solved Threads: 0
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/1214...onvert-me.html
Cluestick, anyone?
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/1214...onvert-me.html
Cluestick, anyone?
![]() |
Similar Threads
- vBulletin mod_rewrite (PHP)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Apache mod_rewrite with Google Ads (Linux Servers and Apache)
- Alternative to using .htaccess for mod_rewrite (Linux Servers and Apache)
- mod_rewrite in asp .net using vb (ASP.NET)
- mod_rewrite (Linux Servers and Apache)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Help with Sendmail
- Next Thread: Redirecting a Directory or page...
| Thread Tools | Search this Thread |
.net apache asus bbc bluegene centos cisco citrix cloud cloudcomputing cyberlink datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





