Dupliacate page content from Moz which I need soem help with
-
Hi
Just checked a diagnostic report in moz and we are getting duplicate page content for
and
attached is the screen shot
Does anyone know how to fix this in magento?
Thanks
-
Perhaps my situation was different, but I just told our hosting company (bluehost) to make the domain.com redirect to the www.domain.com and it solved the problem. Would a similar solution not work for you?
Best of luck,
Ruben
-
Do a 301 to one.
Be sure that your whole website uses just one of the 2. Pick from the www or non-www one.
As long as you can access both, Moz will keep showing you that you have duplicate content.
-
Dennis is correct you must select just one for consistency. As you are using Magento this redirect tutorial may be useful for you:
http://kb.siteground.com/how_to_redirect_magento_to_open_through_www/
Don't forget to set your preferred domain in Google webmaster tool: https://support.google.com/webmasters/answer/44231?hl=en
As a general .htaccess redirect this may help others:
Add the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]Remove the www.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] -
Great thanks for the answers. Does it matter which one you choose?
-
Now this may cause some debate, personally I prefer the www version, you can see that moz prefers the non www version and there is a article here http://www.searchenginejournal.com/canonicalization-seo-should-i-use-www-or-not/6950/ that may help you make your own decision.
Basically choose one and stick with it.