codeigniter url区分大小写敏感问题 [英] codeigniter url case sensitive issue

查看:923
本文介绍了codeigniter url区分大小写敏感问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个名为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆