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)