Home > Article > Backend Development > What does php rewrite mean?
php rewrite is to pass all php requests to a certain file through the web server to process "index.php", and resolve the address according to "request_uri" in index.php.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
What does php rewrite mean?
PHP Rewriter usually passes all PHP requests to a certain file through the web server for processing (index.php), and resolves the address based on request_uri in index.php.
Pseudo-static is a case of URL rewriting. The URL of the php dynamic program is always in the format of post.php?id=2, so a static URL of /post/2.html is constructed. (It looks very much like a 2.html file in the post folder. This is a static address. Since it just looks like a static address, but there is actually no such file, it is called pseudo-static). Define it to index through URL rewriting. .php, and then index.php matches and directs to the program of post.php?id=2 according to the URL format.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What does php rewrite mean?. For more information, please follow other related articles on the PHP Chinese website!