How do I 301 direct all traffic from domain1.com to domain2.com using IIS?

Also I need domain1.com/page.aspx?params to direct to domain2.com/page.aspx?params.

link|improve this question

75% accept rate
feedback

1 Answer

up vote 2 down vote accepted

In IIS 6, right-click on the web site defined as domain1.com. Choose Properties. Go to the "Home Directory" tab. One of the choices is "A redirection to a URL". Choose that, and enter http://domain2.com. For a 301 redirect, check the box marked "Permanent Redirection".

link|improve this answer
It worked except querystring isn't included in the redirect. How can I achieve this? – Niels Bosma Nov 18 '09 at 20:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.