Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Can I point a domain name to a subdomain?

         

sandpetra

4:23 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



Can I point test.com to test.mysite.com?

What will the search engines think of this? Although I'm building for profit, my content is good stuff.

lammert

6:52 pm on Jan 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Technically spoken, you can point test.com to test.mysite.com, but you have to make sure that the search engines only index one of the two versions. Especially for Google it is important that only one of the two is indexed to prevent duplicate content penalties.

The best way to do this is with a 301 redirect from test.com to test.mysite.com. If you are using Apache server, you can do this with a .htaccess settning. For other HTTP servers, please look in the manual or in the appropriate forums here how to do it.

A 301 redirect sends a response to the browser/spider, whenever a page from test.com is loaded. This response contains the code 301 (permanently redirected) and the new address at test.mysite.com where the wanted page can be found. Search engines will only index the test.mysite.com version of the pages.

wildbest

10:43 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



Actually, the question may be is about the possibility to point test.com to mysite.test.com, not to test.mysite.com! Yes, it is possible.