Home > Article > Backend Development > Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good
Pseudo-static implementation
Introduction
It is mainly implemented using a rewrite module provided by Apache, which can realize the rewriting of URL addresses.
Use
Enable configuration
Change the configuration in the virtual host
Create a .htaccess file in the root directory of the website
Case 1
Convert dynamic URL address into a static HTML address
http://local.order.com/index.html ----》Apache server (rewrite rewrite----》index.php file)----》Return to the browser
RewriteEngine On #Turn on the rewrite function
RewriteRule index.html index.php # Redirect the index.html requested by the user to the index.php file
Effect:
index.php file
Browser
Case 2
Use regular expressions in the rewrite module
Effect:
goods.php file
Browser:
The above has introduced the implementation of pseudo-static, including pseudo-static and implementation aspects. I hope it will be helpful to friends who are interested in PHP tutorials.