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 have a website that is a small, one page html/css/js site. I want the viewers to be able to view the same site whether they are coming from or just, without redirection. Is this possible?

share|improve this question
Is there a specific reason that you want to avoid a redirect? If you use both and your search engine ranking can be affected as most search engines will see the two sites as separate; ranking each independently. – Richard Slater Jun 24 '10 at 20:16
up vote 6 down vote accepted

What web server software are you using? IIS?

Have two A records, "" and "" point to same IP, and set the bindings on the site in your server to take in both request.

share|improve this answer
+1 In Apache, you'll want to edit the ServerAlias to have and; is IIS under the Advanced settings for the website, you'll see the host headers; add both www. and . there. As for DNS, I generally set www. as a CNAME to the A record for sheer laziness if I have to change it. – gravyface Jun 24 '10 at 19:34

Is there any reason why you can't just redirect DNS? That is, set up two address records that point at the server and the client will get the same site.

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.