Skip to content

Instantly share code, notes, and snippets.

@philipusis
Created February 5, 2019 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipusis/8a2bb4963b9f718d920c445fa0d0f479 to your computer and use it in GitHub Desktop.
Save philipusis/8a2bb4963b9f718d920c445fa0d0f479 to your computer and use it in GitHub Desktop.
<system.webServer>
<rewrite>
<rules>
<rule name="redirrect to https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" />
</rule>
</rules>
</rewrite>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment