example.com을 입력하면 원하는대로 https://example.com으로 리디렉션됩니다. http://example.com/blog를 입력 할 때 그러나 여전히 https://example.com모든 페이지에 대해 HTTP에서 HTTPS로 리디렉션
<rewrite>
<rules>
<clear/>
<rule name="Force HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="false" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
어떻게 그것이 사용자가 쓴 무엇에 HTTPS를 추가 할 수 있습니다로 리디렉션?
여기 코드를 사용해 보셨습니까? http://stackoverflow.com/a/47095/993547 –
예. 지금 아웃 바운드 규칙을 추가했는데 여전히 루트로 리디렉션됩니다. – crystyxn
시도해주세요. http://stackoverflow.com/questions/32523540/http-to-https-rewrite-too-many-redirect-loops-iis-7 자세한 내용은 http://www.hanselman.com/blog/HowToEnableHTTPStrictTransportSecurityHSTSInIIS7.aspx –