Skip to content

Instantly share code, notes, and snippets.

@jglozano
Created July 15, 2014 21:56
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 jglozano/25ca3dbc742e9dbc33dc to your computer and use it in GitHub Desktop.
Save jglozano/25ca3dbc742e9dbc33dc to your computer and use it in GitHub Desktop.
HTTPS to HTTP Redirect
<rewrite>
<rules>
<rule name="HTTPS to HTTP redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^ON$" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="http://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment