Pseudo-static is a way to process dynamic pages into html pages. We often use the pseudo-static function. Next I will introduce the pseudo-static iis configuration method, for more information, see.
Before configuring iis pseudo-static, We need to download Baidu to download two files: IisUrl Rewriter. dll and IisUrl Rewriter. ini, which are saved on the computer.
Select "ISAPI filter" and then select "add ":
In the "Add/edit filter attributes" dialog box, click "Browse ":
Here, select IisUrlRewriter. dll.
Click "OK" to end the settings:
If the setting does not take effect, restart IIS.
Test whether the configuration is successful
Find the directory where ISAPI Rewrite is installed. The configuration file looks like httpd. ini has completed the following code and re-installed the iis service.
[ISAPI_Rewrite]
| The Code is as follows: |
Copy code |
#3600 = 1 hour CacheClockRate 3600
RepeatLimit 32
RewriteRule ^/index.html $/index. php [L] RewriteRule ^/([a-za-z?##.html $ /? Ac = $1 [I] RewriteRule ^/(%a-za-z%%%%-cid-(%0-9%%%%%%.html $ /? Ac = $1 & cid = $2 [I] RewriteRule ^/(%a-za-z%%%%-cid-(%0-9%%%%%-page-(%0-9%%%%%%.html $ /? Ac = $1 & cid = $2 & page = $3 [I] RewriteRule ^/(%a-za-z%%%%-id-(%0-9%%%%%%.html $ /? Ac = $1 & id = $2 [I] RewriteRule ^/(%a-za-z%%%%-name-(%a-za-z%%%%%%.html $ /? Ac = $1 & name = $2 [I] RewriteRule ^/(%a-za-z%%%%-name-(%a-za-z%%%%-page-(%0-9%%%%%%.html $ /? Ac = $1 & name = $2 & page = $3 [I]
|
Note: The pseudo-static data in apache cannot be copied directly. You need to make some simple modifications.