What is the use of pseudo-static?
The most important thing is to cater to search engines and facilitate search engine spiders (Spiders) to crawl relevant content on the web page!
It is convenient for users to access the website. If a good webpage is dynamic, users will not feel that the trust of the other party is high when communicating with each other. But when you look at a static page, users have a higher trust in the webpage, and the pseudo-static suffix method is basically the same. Just know whether it is a pseudo-static or a real static web page!
Application of pseudo-static in phpWind
If you rent a virtual host, please make sure that the space supports pseudo-static mode. The most commonly used one is .htaccess for Apache's WEB-side configuration. If you are using a standalone server, you can configure the server to support pseudo-static mode. First, let’s talk about the virtual space that supports .htaccess custom pseudo-static (usually Linux virtual machine) .htaccess configuration by default. Just save the following code as .htaccess and transfer it to the server root directory.
http://www.devdao.com/
RewriteEngineOn
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)simple/([t|f].+).html$ /simple/index.php?$2.html
For independent servers, if it is win2003+iis, then you need to install a component called: ISAPI_Rewrite. After installation, edit the httpd.ini file, the content is as follows:
[ISAPI_Rewrite]
# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default.ida|root.exe|..).* . [F,I,O]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
#Code By Josh @ PHPWind 2008-10-08 ?([a-zA-Z]+)
If it is an old version, please change
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
This rule is changed to
RewriteRule ^(.*)-htm-(.*)$ $1/.php?/$2 is enough,
For the ISAPI_Rewrite installation tutorial, please see: Tutorial on setting up a static directory under IIS in PW Forum