Сподели с приятели

<rewrite>
<rules>
<rule name="SSL" stopProcessing="true">
<match url="^(.*)$"  />
<conditions>
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true"/>
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>

Сподели с приятели