Windows2008r2 iis7.5 in the URL rewrite (urlrewrite)

Source: Internet
Author: User

Used to be in windows2003, Using iis6.0, the URL rewrite component that is used frequently is iisrewrite, when the server is upgraded to WINDOWS2008R2, IIS becomes 64 bits of 7.5, the result Iisreite component is 32 bits, although you can set IIS to support 32-bit programs, but still want to find a better way to is found: Microsoft URL rewrite module 2.0 for IIS 7 (x64),: http://www.microsoft.com/zh-cn/download/details.aspx?id=7435.

After downloading, double-click Install, after the installation is complete, you can find the new Add URL Rewrite this button in IIS Web site management, see:

You can then double-click the URL rewrite button to add rules in bulk by using the import rules htacess file. This is intuitive, but eventually IIS will generate a Web. config file under your site's root directory. The general contents are as follows:

<?xml version= "1.0" encoding= "UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name= "imported Rule 1" >
<match url= "^t-(\d+) $" ignorecase= "false"/>
<action type= "Rewrite" Url= "/company/third.asp?thirdid={r:1}"/>
</rule>
<rule name= "imported Rule 2" >
<match url= "^s-(\d+) $" ignorecase= "false"/>
<action type= "Rewrite" Url= "/productshow/smalllist.asp?sortid={r:1}"/>
</rule>
<rule name= "imported Rule 3" >
<match url= "^list-(\d+) $" ignorecase= "false"/>
<action type= "Rewrite" Url= "/productshow/list.asp?typeid={r:1}"/>
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear/>
<add value= "default.htm"/>
<add value= "index.htm"/>
<add value= "index.html"/>
<add value= "Default.asp"/>
<add value= "index.asp"/>
<add value= "iisstart.htm"/>
<add value= "default.aspx"/>
</files>
</defaultDocument>
</system.webServer>
</configuration>

So just modify the Web. config and add your forwarding rules to the tag section rules.

Windows2008r2 iis7.5 in the URL rewrite (urlrewrite)

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.