Home >Backend Development >PHP Tutorial >The framework itself has default routing, and the server itself also has URL rewriting, so why do we usually use the routing function of the framework instead of the latter to beautify URLs?

The framework itself has default routing, and the server itself also has URL rewriting, so why do we usually use the routing function of the framework instead of the latter to beautify URLs?

WBOY
WBOYOriginal
2016-08-31 08:41:04997browse

rt, for example, thinkphp itself has a default route. In order to beautify the URL, why not rewrite it with the URL of the server itself, but use the routing of the framework itself? Is the latter more efficient?

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