Jump to content

Case-insensitive Clean URLs


K_N

Recommended Posts

Right now I'm using the simple

RewriteRule		^([A-Za-z0-9-]+)/?$		index.php?nav=$1 [L]

to remove query strings from my URLs, but I'd like it to be case insensitive, for example,

 

http://domain.com/foobar/ or http://domain.com/FOOBAR/

 

would point to the actual url

 

http://domain.com/index.php?nav=fooBar

 

Rather than having to use the exact case.

Link to comment
https://forums.phpfreaks.com/topic/221677-case-insensitive-clean-urls/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.