Currently, many servers use IIS as the server system and install the Rewrite module. This system provides excellent support for PHP and ASP, so it is widely used, many space vendors have also opened custom httpd. ini permission (if you do not have the permission to open it, let's talk about it through httpd. ini User-Defined pseudo-static address method (if you use Apache as the WEB service system, see: Virtual Host, server custom pseudo-static address. htaccess. If you do not know what web service components are used by your server or virtual host, log on to the background of the Forum, on the homepage of the Forum background, you can see the web service components you are using at a glance, even the component version .).
Open notepad and add code to it.
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
The following pseudo-static rules are common to httpd. ini and. htaccess.
If the static directory is-htm-, add a line of code below:
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2
Some servers may be? The Code is as follows:
RewriteRule ^ (. *)-htm-(. *) $1. php \? $2
If the static directory is-and the static directory extension is. html, add a line of code below:
RewriteRule ^ (. *)/([a-zA-Z] +)-(. *. html. *) $1/$ 2.php? $3
Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/([a-zA-Z] +)-(. *. html. *) $1/$2. php \? $3
If the static directory is/and the static directory extension is. html, add a line of code below:
RewriteRule ^ (. *)/([a-zA-Z] +)/(. *. html. *) $1/$ 2.php? $3
Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/([a-zA-Z] +)/(. *. html. *) $1/$2. php \? $3
PW graph-free mode three support (For details, refer to index. php under the simple Directory, which provides rules that may not be available), the Code is as follows:
RewriteRule ^ (. *)/simple/([a-z0-9 \ _00000000.html. *) $1/simple/index. php? $2
Some servers may be? The Code is as follows:
RewriteRule ^ (. *)/simple/([a-z0-9 \ _00000000.html. *) $1/simple/index. php \? $2
Finally, save the file named httpd. ini and upload it to the root directory of the website.
If you do not understand the modification, follow the instructions in the post.