How to configure Rewrite Rules in IIS

Source: Internet
Author: User

Static URL can improve search engine crawling. To enable this function, you need to add the corresponding rewrite rules to the Web server, which will slightly increase the server load. This tutorial explains how to configure rewrite rules for each product in the IIS environment.

1. First download the rewrite.zip package and decompress it to any directory on any disk.

The rewrite rule packages for each product are different. Select the corresponding product to download the corresponding rewrite rule.

Discuz! 6.0.0/6.1.0 Rewrite Rules: rewrite.zip

Ucenter home1.0.0 Rewrite Rules: rewrite.zip

Rewrite Rules for supesite6.0 _ X-Space4.0_UC: iisrewrite.zip

Supev rewrite rule: rewrite_iis.zip

Download the rewrite rules for each product and rename the rules, as shown in:

Ii. configuration method

Discuz! The rewrite configuration methods of uchome, supesite/X-space, and supev are similar. The following uses discuz! The rewrite rule configuration method of 6.0.0/6.1.0 is used as an example to explain how to configure rewrite rules in the IIS environment.

In IIS manager, right-click a website and choose Properties, as shown in:

In the displayed window, select "ISAPI filter"

Click "add". In the displayed window, enter "Rewrite" in "Filter Name"

Click Browse on the page and select the discuz after downloading and unzipping! Rewrite. dll file under the rewrite rule directory

Click "OK" After browsing"

After adding, click "OK"

Restart IIS

Right-click the site and choose "attribute"> "ISAPI filter". If the Green Arrow is displayed, the rewrite module is successfully installed.

The rewrite rule is successfully configured. However, browsing the Forum address is still not pseudo-static at this time. You need to configure the rewrite rule in the background of the Forum.

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.