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
Release: 2016-08-31 08:41:04
Original
947 people have browsed it

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?

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!