找回密码
 立即注册

web.config 文件设置301案例

admin 2019-11-1 15:17 79人围观 seo建站

web.config 文件设置301案例,规则如下:
web.config 文件设置301案例
规则如下:
----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="301Redirect" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{HTTP_HOST}" pattern="^csseo\.cc$" />
                    </conditions>
                    <action type="Redirect" url="http://www.csseo.cc/{R:0}" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
二维码
欢迎关注,微信 【www_csseo_cc】