Is it possible to have my domain name point to my site in a subdomain?
Eg. www.mydomain.com >>> mysite.my-other-domain.com
|
Is it possible to have my domain name point to my site in a subdomain? Eg. www.mydomain.com >>> mysite.my-other-domain.com | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
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. | |||
|
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/ | |||||
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?). | |||||
feedback
|
wwwis a subdomain too. – grawity Sep 10 '09 at 13:10