2008系统伪静态规则实现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="^***\.gotoip*\.com$" />
                    </conditions>
                    <action type="Redirect" url="http://www.您的域名.com/{R:0}" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

猜你喜欢

转载自blog.csdn.net/weixin_42747452/article/details/81130685
今日推荐