Redirect from HTTP to HTTPS - IIS 7.5

Viewed 11338

I have implemented https on my application and now i'm trying to make IIS redirect all http request to https, so that the user doesn't even notice this change.

I have changed and tried some of the IIS options but with no luck.

How can i do this?

I'm using IIS 7.5 and ASP.NET 2.0

Regards,

5 Answers

Redirect from HTTP to HTTPS in IIS 7

URL Rewrite is tightly integrated with IIS Manager for better management(Download from https://go.microsoft.com/?linkid=9722532)

enter image description here

Configure Rule Settings

Match URL tab:
name= Redirect 2 HTTPS
url= (.*)

Conditions tab: add record
input= {HTTPS}
pattern= ^OFF$

Action tab:
type= Redirect
redirection URL= https://{HTTP_HOST}/{R:1}
redirectType= Permanent

Related