问题
Will any buddy help me to make my urls insensitive .. i want to make domain.com/url.ext is just like domain.com/Url.EXT
Remember
CheckSpelling on
is not working
回答1:
You can easily done by using the mod_speling module, which is part of the standard apache distribution:
CheckSpelling On CheckCaseOnly On
After restarting httpd you can access ABC as Abc or abc
回答2:
You can use RewriteMap and int:tolower as per the example in the mod_rewrite documentation
http://httpd.apache.org/docs/current/rewrite/rewritemap.html#int
来源:https://stackoverflow.com/questions/10366229/case-sensitive-urls-in-apache