Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a fun time migrating a number of websites from IIS 6 to IIS 7. The new IIS 7 platform is two web servers using a shared configuration. This configuration is stored on a network share.

For all the sites I need a standard URL in the browser, so anyone visiting using is redirected to

I have looked at the URL Rewrite module which would do the job but it doesn't work for a shared configuration :( Does anyone know the best way to achieve this in IIS 7?

share|improve this question
up vote 0 down vote accepted

I'm not sure how you've been handling this in IIS6 - but I'd handle it the same way we do in IIS6.

Namely just create separate "redirect" sites in IIS and configure them with the host headers you want forwarding. These sites would be configured to answer any requests for the non-www hosts with a 301 (permenant redirect) to the www site.

share|improve this answer
Yep that's how I did it in IIS 6. Thanks Steve. – Keith Bloom Mar 4 '10 at 15:53

I should have read the documentation closer. The URL Rewrite module will work in a shared configuration, it has to be disabled for the setup and can be enabled when done.

I prefer this method as it removes the need for a website just for redirection and it will pass over the path to the target domain.

share|improve this answer

Why not handle that at the DNS level ?

share|improve this answer
Nice idea. Can you explain how? – Keith Bloom Mar 4 '10 at 14:06

Your Answer


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.