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>

 

posted @ 2017-05-15 15:28  csdnbbs  阅读(873)  评论(0编辑  收藏  举报