Home > Backend Development > PHP Problem > What should I do if the u method displays index.php?

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

藏色散人
Release: 2023-03-09 08:46:01
Original
2839 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
Latest Issues
Where is index.php?
From 1970-01-01 08:00:00
0
0
0
The index.php code is different from tp5.1
From 1970-01-01 08:00:00
0
0
0
Opencart index.php file corrupted
From 1970-01-01 08:00:00
0
0
0
How to open ehome/index.php on your computer.
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template