Case Insensitive URLs with mod_rewrite
- by Paul Tarjan
I'd like for any url that doesn't hit an existing file, to do a lookup on the other possible cases and see if those files exist, and if so, 302 to them.
If that's not possible, then I'm ok with these compromises:
Only check the lowercase version
Only check the first path portion
For example http://example.com/CoOl/PaTH/CaMELcaSE should redirect to http://example.com/cool/path/camelCase (assuming the latter exists).
but of course a full solution is much more useful to me and others