跳转"/>
iis 配置web.config 文件 301 https 跳转
<?xml version="1.0" encoding="UTF-8"?>
<configuration><system.webServer><rewrite><rules><rule name="http 301 https" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /><add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /></rule><rule name=" 301 to www " stopProcessing="true"><match url="(.*)"/><conditions logicalGrouping="MatchAny"><add input="{HTTP_HOST}" pattern="^yourdomain$"/></conditions><action type="Redirect" redirectType="Permanent" url="/{R:0}"/></rule></rules></rewrite></system.webServer>
</configuration>
更多推荐
iis 配置web.config 文件 301 https 跳转
发布评论