Asp.Net web.config配置301重定向

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
 <system.webServer>
        <rewrite>
            <rules>
                <rule name="WWWR" stopProcessing="true">
                    <match url=".*" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="^zpweihang.com$" />
                    </conditions>
                    <action type="Redirect" url="http://www.zpweihang.com/{R:0}" />
                </rule>
            </rules>
        </rewrite>
 </system.webServer>
 </configuration>

 by Jiakeyangweb

相關文章
相關標籤/搜索