Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to either use DNS or I guess IIS(redirect) to have the following happen.

mail.domain.com -> https://website.com

How can I achieve this?

share|improve this question

3 Answers 3

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

Otherwise you will need a redirect, either in HTTP headers emitted by a webserver at http[s]://mail.domain.com 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=http://www.superuser.com" />

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.