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

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

藏色散人
藏色散人 Original
2021-03-31 09:45:19 2683browse

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!

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