Skip to content

Instantly share code, notes, and snippets.

@jacobhackl
Created March 1, 2016 19:54
Show Gist options
  • Save jacobhackl/b987f53d9ca4d0e82b32 to your computer and use it in GitHub Desktop.
Save jacobhackl/b987f53d9ca4d0e82b32 to your computer and use it in GitHub Desktop.
http to https rule for url rewriter in IIS (windows)
<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment