Case sensitive urls in apache

老子叫甜甜 提交于 2019-12-08 13:54:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!