Home  >  Article  >  Backend Development  >  What does php rewrite mean?

What does php rewrite mean?

藏色散人
藏色散人Original
2021-07-09 09:23:292606browse

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.

What does php rewrite mean?

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!

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