Friday, September 30, 2011

IIS Website Redirection (IIS 7.x)

If you wish to create a website that only connects via HTTPS (port 443) but want to ensure users don't see a blank website or receive an error when they type your URL into their browser, you can create an IIS redirection site.  Here are the steps:

1. Open IIS Manager, right click on Sites, and "Add Web Site..."

2. Name the site something that will help you remember what it's for (I used Redirector) and ensure it's capturing requests going to port 80 (HTTP native port number)

3.  Click on your website and double-click on the HTTP Redirect tool

4.  Type in your redirected website name (i.e. HTTPS://www.yoursite.com) and click Apply.  Web redirection is now in place.  Obviously this not only applies to 443 redirections but pretty much any kind of web redirection -- for instance, a subsite (http://www.yoursite.com/MoreInfo) or different server (http://anotherserver.yoursite.com) altogether.

No comments: