Use IIS Url Rewrite Module to Redirect from Http to Https
2015/12/311 min read
bookmark this
About IIS Rewrite Module
First if you want to use it, you have to download and install to your web server. It is support IIS7, IIS7.5, IIS 8, IIS 8.5, IIS 10. List of features include, Rules-based Url rewriting engine, Wildcard pattern matching,and to check more see here.
At this blog, I'll show a case as you want to direct as following scenario.
If use type following url
Will go to https://example.com
Anyway, following is the code you need to add to web.config.