iis url重写

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect to https" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
                        <add input="{HTTPS_HOST}" pattern="^(sun.lcedu.net.cn)" negate="true" />
            <add input="{HTTPS_HOST}" pattern="^(sun1.lcedu.net.cn)" negate="true" />
                    </conditions>
                    <action type="Redirect" url="https://swl.ink/{R:1}" redirectType="SeeOther" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

 

posted @ 2018-06-14 10:11  shiningrise  阅读(790)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css