1. 程式人生 > >IIS8 自動跳轉到HTTPS

IIS8 自動跳轉到HTTPS

bsp div https ppr logs direct 自動 tps condition

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