IIS rewrite module implements automatic two-level domain name, Microsoft provides URL rewrite version 2.0 for IIS above

Source: Internet
Author: User

After IIS7, Microsoft provided the URL rewrite version 2.0, which can be implemented by installing rewrite components. Applies to IIS7 or later versions.

Installation can be selected in two ways, one is to download the installation files, and the second is to install through the "Web Platform Installer"

1. Download the installation file

: https://www.microsoft.com/zh-cn/download/details.aspx?id=7435

Or

Https://www.iis.net/downloads/microsoft/url-rewrite

2. "Web Platform Installer" installation

The URL rewrite icon appears in the IIS Web site after the installation is complete:

Webconfig no more than 1.0 to write a lot of configuration content, only in system.webserver write rewrite rules can be:

 <system.webServer>    <rewrite>      < Rules>        <rule name= "Q"  stopProcessing= "true" >           <match url= "^a/(. *) \.html$"  />           <action type= "Rewrite"  url= "/a.aspx?" Domain={c:1}&amp;id={r:1} " />          < Conditions>            <add input= "{ Http_host} " pattern=" ^ (. *) \.morecoder\.com$ " />           </conditions>        </rule>       </rules>    </rewrite>  </system.webServer>

Reprint: IIS rewrite module implements automatic two-level domain name, Microsoft provides URL rewrite version 2.0 for IIS above

IIS rewrite module implements automatic two-level domain name, Microsoft provides URL rewrite version 2.0 for IIS above

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.