Forum Moderators: open
I changed the .htaccess file with the following lines:
RewriteCond %{HTTP_HOST} ^www\.[domain 2]\.com$ [NC]
RewriteRule ^(.*)$ http://www.[domain 1].com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^[domain 2]\.com$ [NC]
RewriteRule ^(.*)$ http://www.[domain 1].com/$1 [R=301,L]
This worked exactly as I intended to prevent the described problems with the shopping cart. However it seems to have an unintended side effect with Google because G has www.[domain 2].com indexed and formerly ranked very high. Since last Wednesday, when I started the work, we have virtually disappeared from our regular search engines results where we were listed in the top 5 results
I have researched these re-write rules in relation to Google as well now, and it seems also that this is the correct way to report to you that all of these sites are ours, and that the one that should be listed is www.[domain 1].com. We now need to know what is your recommendation on these 301 Re-directs? Should I leave the htaccess file with the 301's? If I leave the 301's when will the www.domainname.com site get the rankings that we enjoyed with www.domain-name.com?
We have tried to follow all guidelines on submission, and do our best to run a clean and honest site. We would now appreciate any help you may provide us on these issues.
[edited by: ciml at 11:09 am (utc) on July 22, 2004]
[edit reason] Examplified [/edit]