IIS7.5下 web.config做301跳转

把红色地方的网址换成你自己的,多个跳转多个规则

<rule name="WWW Redirect" stopProcessing="true">

<match url=".*" />

<conditions>

<add input="{HTTP_HOST}" pattern="^bbs.oiplay.com$" />

</conditions>

<action type="Redirect" url="http://www.oiplay.com/{R:0}"

redirectType="Permanent" />

</rule>

---------------------------------------分割线---------------------------------------------------

<rule name="WWW Redirect2" stopProcessing="true">

<match url=".*" />

<conditions>

<add input="{HTTP_HOST}" pattern="^oiplay.com$" />

</conditions>

<action type="Redirect" url="http://www.oiplay.com/{R:0}"

redirectType="Permanent" />

</rule>