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 IIS
2. Click on the site you wish to change
3. Double-click on SSL Settings
4. Check the box Require SSL
5. Click on Apply (on the top right hand side)
6. Click on Error Pages
7. Double-click on the item with status code 403
8. Choose the item to Respond with a 302 redirect and enter the https address
9. Click on OK
10. 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
[…] If you want to make your site exclusively SSL (re-directing automatically from http to https) then c… […]