Detailed description of iis pseudo-static Configuration

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.