What should I do if the u method displays index.php?

藏色散人
Release: 2023-03-09 08:46:01
Original
2749 people have browsed it

u method will display the solution for index.php: first open the corresponding code file; then set the routing mode to 2; and finally use u method.

What should I do if the u method displays index.php?

The operating environment of this article: Windows7 system, thinkphp v3.2 version, DELL G3 computer

Specific questions:

The URL generated using the U method in the template will have index.php. How can I hide index.php? Or is there any other way to generate the URL?

Solution:

After setting the routing mode to 2, there will be no index.php when using the u method.

[Recommended learning: PHP video tutorial]

The above is the detailed content of What should I do if the u method displays index.php?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!