IIS6 IIS7使用web.config进行301重定向
时间:2010-12-22 来源:黄兆张's Blog
<rules>
<rule name="blog301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^shionco.com$" />
</conditions>
<action type="Redirect" url="http://www.shionco.com/{R:1}" redirectType="Permanent" />
</rule>
</rules>
<rule name="WWW 301Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^wecanwecan.com$" />
</conditions>
<action type="Redirect" url="http://www.wecanwecan.com/{R:0}"
redirectType="Permanent" />
</rule>
相关阅读 更多 +
排行榜 更多 +