Forum Moderators: phranque

Message Too Old, No Replies

Same content indexed by Google using two different domain names

         

ak4life

1:01 am on Jun 18, 2007 (gmt 0)

10+ Year Member



Dear experts,

I have DomainA and DomainB. I didn't have a website configured for DomainB so Apache was serving up DomainA content when someone had requested DomainB.

I discovered this recently after finding that DomainB was thoroughly indexed by Google and had the same page rank as DomainA.

I figured the best solution would be to setup a redirect for DomainB:

Redirect 301 / [DomainA...]

This works great in seamlessly redirecting all requests without throwing up 404 pages and such, but I just want to make sure that this indeed is the best way to go in terms not getting punished by Google, loosing page rank, etc.

thanks much in advance, -Alain.

chrisranjana

9:01 am on Jun 18, 2007 (gmt 0)

10+ Year Member



Not sure whether that is the best way but now you have 2 domains with the same PR why not serve up separate unique content from both of them?

jdMorgan

1:39 pm on Jun 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it was your intent to use domainB for the same company/product/purpose as domainA, then the 301 redirect is the correct solution. If not, then you should put at least a "home page" on domainB that states what domainB is (or will be) used for, and thereby make it unique from domainA.

Either approach will prevent a duplicate-content issue, caused by splitting your PageRank/Link-popularity across two (or more) domains.

Other things to look out for (and to correct if present) are subdomain and page canonicalization problems. Test the following, and correct them (with a 301 redirect) if they return the same content:

domainA/
www.domainA/
domainA/index.php (or .html, .asp -- whatever you might use)
www.domainA/index.php

All should redirect to either www.domainA or to domainA, whichever you choose based on current linking, ranking, and personal preference. In order to correct these problems, you'll need to use mod_rewrite on domainA itself, examining the HTTP_HOST and REQUEST_URI server variables. Apache mod_alias (the Redirect directives) cannot test these variables, and so cannot be used to fix these problems)

Jim