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 need to either use DNS or I guess IIS(redirect) to have the following happen. ->

How can I achieve this?

share|improve this question

You could use DNS direct requests to by placing a CNAME record in the zonefile for and by configuring the webserver at to accept and handle requests with a HTTP Host header of (regardless that the server is This will be faster.

Otherwise you will need a redirect, either in HTTP headers emitted by a webserver at http[s]:// or an HTML redirect in an index.html (or equivalent) at that location & URL. The specifics depend on what webserver software you run at that computer. This is more flexible but involves the client making two HTTP requests instead of one.

share|improve this answer

Well, another way to do this is by using HTML. You could have HTML redirect them using a meta tag. Here is an example.

<meta http-equiv="Refresh" content="5;url=" />

The value of content (5) is how many seconds it will wait until it redirects. The url value is where you will redirect them to. I hope this helps! Comment if you have any other questions.

share|improve this answer

If you're using IIS7 or greater than URL Rewrite is the way to go. A simple rule at the server or site level can watch for the original domain and redirect to the new domain. You can enforce https or most anything else you want.

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.