Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2012 14:43
What would you like to do?
webconfig for http to https redirect
<?xml version="1.0" encoding="UTF-8"?>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
Copy link

install the url rewrite module for IIS and place this in your wwwroot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment