Created
January 26, 2018 08:43
-
-
Save andrenascentes/d8ba410cee2f1dff288015d6087bde06 to your computer and use it in GitHub Desktop.
IIS url rewrite http to https
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rewrite> | |
<rules> | |
<rule name="Rewrite HTTP to HTTPS" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions logicalGrouping="MatchAny"> | |
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="^http$" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" /> | |
</rule> | |
</rules> | |
</rewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depends on https://www.iis.net/downloads/microsoft/url-rewrite