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>