Skip to content

Instantly share code, notes, and snippets.

@tstpierre
Created September 23, 2015 16:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstpierre/afec7eb409aebe0bf3d1 to your computer and use it in GitHub Desktop.
Save tstpierre/afec7eb409aebe0bf3d1 to your computer and use it in GitHub Desktop.
<!-- Redirect all traffic to SSL -->
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment