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 web pages!
It is convenient for users to access the website. If the web page is dynamic, users will not feel that the trust level of the other party is high when they spread it to each other. But when you look at a static page, users have a higher level of trust in the web page. And the pseudo-static suffix method is basically the same. You can tell whether it is pseudo-static or pseudo-static. Really static web pages!
Pseudo-static application in phpWind
If you rent a virtual host, please make sure 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. Let’s talk about the default virtual space that supports .htaccess custom pseudo-static (usually Linux virtual machine) .htaccess configuration. Save the following code as .htaccess and transfer it to the server root directory.
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)simple/([t|f].+).html$ /simple/index.php?$2 .htmlFor independent servers, if it is win2003+iis, then you need to install a component called: ISAPI_Rewrite. After installation, edit the httpd.ini file with the following content:
[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