I have mulitple domains that are both drawing traffic and that I should only have doing that. my question is how do I make one go away?
-
First off I am VERY new to his SEO stuff and If you guys could be so kind as to help.
I was setting up my first campaign for my web site and when i entered it into the URL search it came back with having 2 web sites that it searched. Both are mine but one has the "www.website.com" and the other just has the "website.com"
how can i fix this so i just have one?
thanks in advance for your help
-
301 one of the domains to the other domain. That should work. You need to decide if you want a www.site.com or a non-www, just site.com. Keep it consistent from here on out.
Code for htaccess to redirect non-www to www:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.site.com
RewriteRule (.*) http://www.site.com/$1 [R=301,L]