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 you set up IIS so that when someone types in www.yourdomain.com it changes to yourdomain.com without the www.?

one example of this is www.twitter.com

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You have a few options. If it's IIS7, definitely consider URL Rewrite. For IIS 6 I would consider ISAPI Rewrite (www.isapirewrite.com).

If you use your own server, setup a redirect site with www.yourdomain.com for the bindings and add a full redirect to yourdomain.com. Basically have 2 full sites.

As you could handle it from code too, although the previous options are usually better.

share|improve this answer

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.