Rewriting URLs from https:// to http:// in IIS7

I’m trying to rewrite urls from the form:

to the form

using IIS7 URL rewriting:

I’m at a loss; I’ve been browsing the web for examples and trying every syntax I can think of. The rewrite rules I specify simply don’t appear to work at all for any https requests, as if all the https:// requests are flat out invisible to the rewrite engine.

rules work fine; see answer below.

Add Comment
1 Answer(s)

This post is a little old, but I wanted to answer. I am using ASP.Net MVC3, and Fabio’s answer above didn’t work for me. The easiest solution I came up with to handle the https redirect to http, while still allowing valid https pages to request secure content was just to add Whitelist rules above my https/http redirects:

Answered on April 6, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.