I have a primary domain and 2 other secondary domains for my site. If someone visits one of the secondary domains, I want them to be redirected (HTTP 301) to the same page on the primary domain.
Is there a simple rule I can add to the web.config for the rewrite module?
I could write an http module that hooks into beginrequest but I would be surprised if there wasn’t an easier way to achieve this using a rewrite entry in web.config.