I have a web site (hosted in IIS 7.5) that has bindings to 4 urls. Something like:
What I would like to accomplish using URL Rewrite is that:
- Surfing to www.xxx.com will auto redirect to xxx.com (and return 301)
- Surfing to zzz.com will auto redirect to www.zzz.com (and return 301)
I tried using the URL Rewrite (I have no experience using this feature) using the IIS MANAGER > FEATURES > URL Rewrite > Add Rule > canonical domain name, but the problem is that then I can choose one address of those 4 that will cause all other 3 to be redirected to and that is not what I need to do...
Can you please help and advise? Is URL Rewrite is a good and possible way to do that?