Make your site exclusively SSL (re-directing automatically from http to https) on Windows Server

If you have an SSL certificate on your website, how do you automatically re-direct ALL visitors to the SSL version? Its easy, and with no code required.1. Open IIS2. Click on the site you wish to changeScreen Shot 2013-09-12 at 10.31.123. Double-click on SSL Settings4. Check the box Require SSLScreen Shot 2013-09-12 at 10.33.345. Click on Apply (on the top right hand side)6. Click on Error Pages7. Double-click on the item with status code 403Screen Shot 2013-09-12 at 10.37.068.  Choose the item to Respond with a 302 redirect and enter the https address9. Click on OK10. Stop and re-start the website and hey-presto, anyone who visits (for example) http://www.mywebsitetest.co.uk will be automatically redirected to https://www.mywebsitetest.co.uk 

Previous
Previous

How to add an SSL certificate to IIS in Windows Server 2008 R2

Next
Next

PC Pro Podcast 278