A écrire dans le web.config
1 2 3 4 5 6 7 8 9 |
<rules> <rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{SERVER_PORT_SECURE}" pattern="^0$" /> </conditions> <action type="Redirect" url="https://[votresite]" redirectType="Permanent" /> </rule> </rules> |