Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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".

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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