Home > Article > Backend Development > Can php not need routing?
Can php not be routed?
php does not need routing, but the routing function is helpful for website security and SEO. For example, thinkphp's routing can make your URL address more concise and elegant.
For example, when no route is defined, the access url is http://serverName/index.php/Home/News/read/id/8. After defining the route, it can be accessed through http://serverName/index. php/Home/new/8 for access with the same effect~
Introduction to php:
PHP is the "Hypertext Preprocessor" and is a general open source scripting language. PHP is a scripting language executed on the server side. It is similar to C language and is a commonly used website programming language. PHP's unique syntax mixes C, Java, Perl, and PHP's own syntax. It is conducive to learning and widely used. It is mainly suitable for the field of web development.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Can php not need routing?. For more information, please follow other related articles on the PHP Chinese website!