IIS redirecting made easy
Redirecting web traffic in IIS has been done for ages. Most people use the URL Rewrite plugin to achieve this. It provides a relatively easy way to create redirect rules.
Most rules I see are very specific with the exact domain name in the rule and manually created over and over again for each project. Fortunately there are rules crafted in such a way that they can be applied for every website. This saves me a lot of time and hopefully now yours.
Let me share the 2 most commonly used ones:
Prepending www to 2nd level domain names
Credits to Scott Forsyth
HTTP to HTTPS