codeigniter url区分大小写敏感问题 [英] codeigniter url case sensitive issue
问题描述
我写了一个名为 CMS
(大写字母)的控制器。当我调用链接 http:// localhost / CI / testing / admin / cms / insert ,没有问题。它的工作正常localhost。
I have written a controller with name CMS
(capital letter). When I call the link http://localhost/CI/testing/admin/cms/insert, It has no problem. Its working fine in localhost.
将该页面上传到服务器后,当我执行语句时, http://dev.test.in/testing/admin/cms/insert ,则不会显示该页面。但是当我将网址更改为 http://dev.test.in/testing/admin/ CMS / insert ,它处于工作状态。
After uploading that page to server and when I execute the statement, http://dev.test.in/testing/admin/cms/insert, it doesn't display the page. But when I change the url to http://dev.test.in/testing/admin/CMS/insert, its in a working condition.
为了解决这个问题,我必须将控制器名称更改为cms(小写字母)将所有锚点网址更改为CMS。是否有任何其他解决方案。像写htaccess文件?
In order to solve this either I will have to change the controller name to cms(small letter) or change all the anchor url to CMS. Is there any other solution to solve this. Like writing htaccess file?
推荐答案
问题存在coz文件名在Linux和Windows上不同
MyFile& myfile不能存在于Windows中的同一路径中,但可以在Linux上
The problem exist coz file name differs on Linux and Windows MyFile & myfile can not exist in a same path in Windows, but can on a Linux
这篇关于codeigniter url区分大小写敏感问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!