I have the following root level URLs where people could possibly go:
1. http://example.com
2. http://www.example.com
3. https://example.com
4. https://www.example.com
How can I ensure that 1, 2, and 3 always redirect to 4 with a rewrite rule in IIS 8? Of course, it should keep whatever secondary information is attached (e.g. /images/myfile.jpg?query=string&another=string
)
You can try this rule