Home  >  Article  >  php教程  >  thinkphp的URL大小写敏感的解决方法

thinkphp的URL大小写敏感的解决方法

WBOY
WBOYOriginal
2016-06-07 17:23:442117browse

今天我给WBlog博客程序作了升级,也就是把WBlog的核心由ThinkPHP3.1替换成ThinkPHP3.12,因为版本比较接近,所以没有产生什么大的变化,但小问题还是有的。升级后,首页浏览正常,但点击导航的URL链接时,出现了页面错误,提示找不到页面,然后跳到404页面去了。不怕出现问题,就怕找不到问题。发现问题,解决问题,对我来说是一件很愉快的事。经过仔细观察对比,路径没有错,再对路径输入大小写对比,发现URL的字母对大小写敏感。


问题发现了,看一下解决方法


1、到核里包的配置文件thinkphp/Conf/convention.php找到 'URL

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn