0
我得到了一個https重寫規則的副本,以便某些關鍵字在url中時,它會自動重定向到特定端口上的https:。IIS重寫規則並返回到非安全http:之後
但是,我還希望當我想要註銷安全區域並返回非SSL站點時,它不再處於https狀態。我一直沒有這樣做。
有人可以告訴我我需要做什麼嗎? 這是我使用的https規則。
<rewrite>
<rules>
<rule name="Secure Account Controller" enabled="true" stopProcessing="true">
<match url="^account" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" >
<add input="{HTTPS}" pattern="off"/>
<add input="{HTTP_HOST}" pattern="([^/:]*?):[^/]*?" />
</conditions>
<action type="Redirect" url="https://{C:1}:44300{URL}"/>
</rule>
</rules>
</rewrite>
** **修訂本 似乎已經做到了..不知道爲什麼一旦它完成了在browswer的URL不會恢復..但是當我點擊網站的另一個頁面上.. 。它顯示HTTP
<rule name="Home Controller" enabled="true" stopProcessing="true">
<match url="^home" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" >
<add input="{HTTPS}" pattern="on"/>
<add input="{HTTP_HOST}" pattern="([^/:]*?):[^/]*?" />
</conditions>
<action type="Redirect" url="http://{C:1}:7224{URL}"/>
</rule>