IIS7.5下 web.config做301跳转

作者:客服中心    文章来源:尚云互联

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

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

                    <match url=".*" />

                    <conditions>

                    <add input="{HTTP_HOST}" pattern="^146142.x35.cn$" />

                    </conditions>

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

                    redirectType="Permanent" />

</rule>

                

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

                    <match url=".*" />

                    <conditions>

                    <add input="{HTTP_HOST}" pattern="^x35.cn$" />

                    </conditions>

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

                    redirectType="Permanent" />

 </rule>