I have just setuped ssl for my dmain and host. I want to limit my site to https://www.example.com
ONLY.
If the any user tried to open http://example.com
, www.example.com
, example.com
or https://example.com
he must be redirected to https://www.example.com
The redirection must be for the domain name only. The rest of any URL would remains as is.
For example: if user opened example.com/dir1/page1.aspx
he must be redirected to https://www.example.com/dir1/page1.aspx
I want to do it using IIS rewrite rules.