Thinkphp URL case sensitivity solution-PHP development

Source: Internet
Author: User
Today, I upgraded the WBlog program, that is, replacing the core of the WBlog with thinkphp3.1 with thinkphp3.12. Because the version is similar, there is no major change, but there are still some minor problems. After the upgrade, the homepage is normally browsed, but when you click the URL link in the navigation bar, a page error occurs, prompting that the page cannot be found, and then the page jumps to page 404. If you are not afraid of problems, you are afraid that you will not be able to find them. Discovering and solving problems is a pleasure for me. After careful observation and comparison, there is no error in the path. after entering the path, I upgraded the WBlog program today, that is, the core of WBlog ThinkPHPReplace 3.1 ThinkPHP3.12, because the version is relatively close, there is no major change, but there are still some minor problems. After the upgrade, the homepage is normally browsed, but when you click the URL link in the navigation bar, a page error occurs, prompting that the page cannot be found, and then the page jumps to page 404. If you are not afraid of problems, you are afraid that you will not be able to find them. Discovering and solving problems is a pleasure for me. After careful observation and comparison, the path is correct, and then the input is case-sensitive.


The problem is found. Let's take a look at the solution.


1. Find the 'url 'in the configuration file thinkphp/Conf/convention. php of the core package.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.