Hi, I have this site that was built around one domain name, let's call it Domain-A. Somehow, they have Domain-B parked for Domain-A. So, if you view a page www dot domain-b/page-1, you will see the same content as www dot domain-a/page-1[/url], but in the browser's address bar, you will see domain-b in the address. The problem is that Google now thinks there are 4 websites: www dot domain-a, domain-a (without the www), www dot domain-b and domain-b (without the www). The domain-b without the www has some rankings. But the domain-b doesn't have a website, only its domain name is pointed to domain-a. If I were to keep the site as www dot Domain-A and redirect both www dot Domain-B and Domain-B (without www), what is the best way to go about this without losing all the rankings that the domain-b (without www) has? Is the site with the www very different from the without the www in the eyes of search engines? Is there a way to permanently redirect the domain name without the www to that with the www? Thanks in advance!
Do a 301 redirect on Domain B to the WWW version of Domain A for both the WWW version and non-www version of Domain B. Then do a 301 redirect on the non-www version of domain A to the WWW version of domain A. That should take care of any of your issues. Get all that?
Do this in your .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^domainB.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domainB.com$ RewriteRule ^(.*)$ http://www.domainA.com/$1 [R=301,L] Also, sign up for Google Webmaster Tools and tell it that you prefer the www version.