Any case URLs

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Any case URLs

Post by tecktalkcm0391 »

How can I change the .htacces file or something to make it so any case URL would work...

http://site.com/TEMPLATE/page.php --- would display the page
http://Site.com/TEmplate/Page.Php --- would diplay the page
http://site.com/tempLate/page.php --- would display the page

What would I do?

Can't test, site is live.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

a mod_rewrite rule that uses the "nocase" flag would do it.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Again I can't test, the site is live... would this be right?

Code: Select all

RewriteRule (.*) /$1 [NC]
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

I still haven't figured this out, that didn't work. Any ideas?
Post Reply