首页 > 代码库 > IIS8 自动跳转到HTTPS

IIS8 自动跳转到HTTPS

1.安装URL REWRITE2 "伪静态模块"

2.

<rule name="https" stopProcessing="true">
     <match url="(.*)" />
     <conditions>
         <add input="{HTTPS}" pattern="off" />
     </conditions>
     <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Temporary" />
</rule>

 

IIS8 自动跳转到HTTPS