Home > Article > Backend Development > PHP pseudo-static writing method with code_PHP tutorial
For example, this web page
http://www.jb51.net/soft.php/1,100,8630.html
In fact, the script processed is soft.php and the parameter is 1,100,8630
Equivalent to soft.php?a=1&b=1=100&c=8630 but this URL is too difficult to remember. Search engines don’t like it either.
True static is just fully generated HTML.
Output directly when accessed by the client. No need for script explanation. It will have very good results when the traffic is very large (such as when there are millions of visits every day). In other words, this HTML page actually exists on the server side.
Of course when the traffic of your website is not that large. URL rewriting is the best method (in my personal opinion, load balancing can be considered when there is large traffic. It doesn't matter either)
There are many ways to rewrite URLs, including APACHE and IISREWRITE. Even PHP scripts can handle it directly. For example, in the above example, the PHP script handles it directly (the advantage of this method is that it directly reduces the pressure on the WEB server when there is a large amount of traffic. PS: This is also a personal opinion:
============ =====================================
Let’s take the program as an example. PHP pseudo-static program implementation method. In fact, I have posted this method in other forum communities before
program as an example:
http://www.jb51.net/soft.php /1,100,8630.html