Is it possible to have my domain name point to my site in a subdomain?

Eg. www.mydomain.com >>> mysite.my-other-domain.com

link|improve this question
I just have to downvote this because www is a subdomain too. – grawity Sep 10 '09 at 13:10
feedback

migrated from stackoverflow.com Sep 10 '09 at 10:27

This question came from our site for professional and enthusiast programmers.

3 Answers

You can do this by changing your DNS records too. Set the CNAME record for www.domain1.com to point to sub.domain.com and set the CNAME record www.domain2.com to www.domain.com. As for the default.aspx that will be picked up automatically by the web-server if it is configured correctly.

link|improve this answer
feedback

Make a new file in the root of the domain, call it .htaccess and put in it:

redirect 301 / http://mysite.my-other-domain.com/
link|improve this answer
You can do this thru DNS too. – sybreon Sep 10 '09 at 10:46
This is an HTTP solution but nothing in the original question (not even the tags) implies that he talks about HTTP, he only mentioned DNS. – bortzmeyer Sep 11 '09 at 7:15
feedback

This sounds more like a ServerFault question. As far as I can remember, this is pretty easy to do, you just do a redirect (of 300 series, I believe 301?).

link|improve this answer
This is an HTTP solution but nothing in the original question (not even the tags) implies that he talks about HTTP, he only mentioned DNS. – bortzmeyer Sep 11 '09 at 7:16
feedback

Your Answer

 
or
required, but never shown