<configuration>
...
...
<system.webServer>
...
...
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite
</system.webServer>
</configuration>
Created
March 27, 2023 20:45
-
-
Save valadas/0fb51a966811f846240366adc26c4b6f to your computer and use it in GitHub Desktop.
Force IIS redirection to https for all urls
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment