Application of pseudo-static solution in phpWind
What is the use of pseudo-static data?
The most important thing is to cater to the search engine's convenience for search engine Spider to capture the relevant content on the webpage!
It is convenient for users to access a good website. if a dynamic user feels that the trust of the other user is not high when they communicate with each other, however, when you look at a static page, you will have a higher level of trust in the page, and the pseudo-static suffix methods are basically the same. at first glance, you will know whether it is a pseudo-static page or a real static page!
Application of pseudo-static in phpWind
If you are renting a VM, make sure that the space supports the pseudo-static mode. The most commonly used is. htaccess configuration for apache WEB. If you are using an independent host, you can configure the pseudo-static mode on the server. First, the virtual space supports the. htaccess custom pseudo-static (usually a linux virtual machine). htaccess configuration by default. Save the following code as. htaccess and upload it to the root directory of the server.
Http://www.devdao.com/
RewriteEngine On
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2
RewriteRule ^ (. *) simple/([t | f0000.00000000.html $/simple/index. php? $2.html
For an independent server, if it is win2003 + iis, you need to install an ISAPI_Rewrite component. 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
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2
This rule is changed
RewriteRule ^ (. *)-htm-(. *) $1/. php? /$2,
For ISAPI_Rewrite installation tutorial, see the tutorial on setting static directories in the PW Forum IIS.