What does php rewrite mean?

藏色散人
Release: 2023-03-11 11:32:01
Original
2628 people have browsed it

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!

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