2013-03-13 59 views

回答

0

這似乎爲我工作,在web.config中:

<rewriter> 
    <if header="HTTPS" match="^OFF$"> 
    <redirect url="(.*)" to="https://mydomain$1" /> 
    </if> 
</rewriter> 

雖然我發現IIS和MVC,至少,設置[RequireHttps]將處理HTTP - 一個自動> HTTPS重定向302.