Using URL rewrite module for http to https redirect
Posted
by
johnnyb10
on Server Fault
See other posts from Server Fault
or by johnnyb10
Published on 2010-06-14T19:57:30Z
Indexed on
2011/11/12
17:55 UTC
Read the original article
Hit count: 284
Following ruslany's suggestion on the URL Rewrite Tips page here, I'm trying to use URL Rewrite to redirect http:// requests for my site to https://. I've written and tested the rule using a test site I set up, and so now the final piece is to create a second site (http) to redirect to my https site. (I need to use a second site because I don't want to uncheck the "Require SSL encryption" checkbox on my existing site.)
I'm an IIS newbie so my question is: how do I do this? Should I create a site with the same name and host header, only it will be bound to http? Will IIS let me create a site with the same name? I don't want to screw anything up with my existing site (which is a SharePoint site, currently used by external users). That site currently has http and https bound to it. So my assumption is that, using ISS (not SharePoint), I will create a new site (http only) with the same name and host header as my existing site, and add the URL Rewrite rule to the http site. And then I guess I should remove the http binding from my existing site? Does that seem correct?
Any advice, gotchas, etc., would be appreciated. Thanks.
© Server Fault or respective owner