Home > Article > Backend Development > What should I do if the u method displays index.php?
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.
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!