In the previous article, we explained the pseudo-static implementation under the APACHE server, but there are more IIS servers in China, especially personal webmasters, let's take a look at the php pseudo-static implementation process under IIS. Some win hosts are not supported by IIS. the htaccess file, which is not locally used by the apmserv server. for the htaccess file, use the apmserv server environment to configure pseudo-static data, you can refer to the php pseudo-static (url rewrite mod_rewrite rewrite) article, which describes in detail.
Here, we will mainly explain httpd. ini ~
Example: www.php.net/index.php
We want him to use www.php.net/index.html for direct access.
Www.php.net/newxx.php? = 10 [newxx. php is a detailed page of news]
We converted the pseudo-static data into www.php.net/new-10.html.
The implementation process is as follows: httpd. ini source file
[ISAPI_Rewrite]
#3600 = 1 hour
# CacheClockRate 3600
RepeatLimit 32
# Protect httpd. ini and httpd. parse. errors files
# From accessing through HTTP
RewriteRule ^/httpd (? : \. Ini | \. parse \. errors). * [F, I, O]
RewriteRule/index.html/index. php
RewriteRule/new-(%0-9%%%%%.html $/newxx \. php \? Uid = $1 the above example shows that RewriteRule/index.html/index. php converts index. php to index.html
RewriteRule/new-(%0-9%%%%%.html $/newxx \. php \? Uid = $1 to new-101_which is the value of id1_number. html
It's easy. This pseudo-static mode is generally supported by the Space merchants of win hosts!