主页 > 运维运营 > IIS >
发布时间:2018-05-20 作者:apizl 阅读:529次

iis7.5 http地址自动转跳到https中

URL重写模块:Microsoft URL Rewrite Module

32位:http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi

64位:http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msi


Web.config添加

<rule name="HTTP to HTTPS redirect" stopProcessing="true">

         <match url="(.*)" />

         <conditions>

                        <add input="{HTTPS}" pattern="off" />

         </conditions>

         <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />

       </rule>


文章由爱资料原创本文地址:https://www.apizl.com/archives/view-134165-1.html,转载请以链接形式标明本文地址!
关键字词: