Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have IIS 7

We have about 61 different companies on our website and each company group has their own subdomain, like so:
  .... .... ....

Now a lot of people, when told to go to actually end up typing How do I handle this please?

Ideally I want to simply redirect www users to their non-www counterpart.

I have no idea what needs to be done, searching for multiple subdomain doesn't give me any leads in google.


share|improve this question

You need to create a CNAME in DNS, and appropriately configure the virtual hosts in IIS to understand that www.group1 and group1 are the same site (assuming you're using name-based virtual hosts).

That should be enough to point you in the right direction for further Google searching (or the ISS/MS DNS help system -- I'm not a Windows guy so I can't point you to specific places...).

What is a CNAME =>
How to add CNAMEs in MS DNS =>

share|improve this answer
Dangit, I was in the middle of typing this... – Holocryptic Jun 8 '11 at 15:22
CNAME will redirect to the correct name before making any HTTP requests, right? – Chris N Jun 8 '11 at 15:25
@Chris - the CNAME will point your DNS resolver at the correct name (and thus the correct IP), but the HTTP host header your browser sends will be for the CNAME (which will confuse name-based virtual hosts). -- If it's IP-based virtual hosts the CNAME should be all that is needed, but making sure the web server knows both domains are the same vhost is still a good practice. – voretaq7 Jun 8 '11 at 15:32
Hi, What is CName? as I see it, its an alias right? we have a dedicated server so no cpanel stuff, I manage everything from IIS. what is the cname in iis called? I tried googling, no luck. sorry to bother you with more questions. – LocustHorde Jun 8 '11 at 15:33
@LocustHorde See the updates in the answer -- I believe MS calls CNAMEs aliases still but it's been forever since I sat down in front of MS DNS. – voretaq7 Jun 8 '11 at 15:37

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.