Given multiple domain bindings, how do I configure my IIS site to redirect all requests to a primary domain without creating a second site to handle only the redirect?
This is now a built-in IIS 7 feature:
- Go to URL Rewrite.
- Click Add Rule.
- Select Canonical Domain Name under Search Engine Optimization.
- Enter canonical domain and save.