我写了一个带有名称的控制器CMS
(大写字母)。当我调用链接时http://localhost/CI/testing/admin/cms/插入 http://localhost/CI/testing/admin/cms/insert,没有问题。它在本地主机中工作正常。
将该页面上传到服务器并执行该语句后,http://dev.test.in/testing/admin/cms/insert http://dev.test.in/testing/admin/cms/insert,它不显示该页面。但是当我将网址更改为http://dev.test.in/testing/admin/CMS/insert http://dev.test.in/testing/admin/CMS/insert,其处于工作状态。
为了解决这个问题,我必须将控制器名称更改为 cms(小写字母),或者将所有锚点 url 更改为 CMS。有没有其他解决方案可以解决这个问题。喜欢写 htaccess 文件吗?
存在问题是因为 Linux 和 Windows 上的文件名不同
Windows 中 MyFile 和 myfile 不能存在于同一路径,但 Linux 上可以
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)