iis 7.5 伪静态 设置301转跳

修改web.config文件添加

下面的规则为

把不带www的10isp.com转跳到www.10isp.com

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
	<rewrite>
 	<rules>
#
<rule name="host" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^10isp.com$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://www.10isp.com/{R:0}" />
</rule>
#

	</rules>
	</rewrite>
    </system.webServer>  
</configuration>