Search console, duplicate content and Moz
-
Hi,
Working on a site that has duplicate content in the following manner:
http://domain.com/content
http://www.domain.com/contentQuestion: would telling search console to treat one of them as the primary site also stop Moz from seeing this as duplicate content?
Thanks in advance,
Best, Paul.
http
-
Nope - Moz is completely unaware of settings you define in Google Search Console.
Why don't you pick a preferred version & 301 redirect the other one to the preferred one?
Dirk
-
You should automatically redirect the www or non-www (check Google to see which one they prefer.)
If you're using a host that allows .htaccess files, you can use one of these (CHOOSE one and put the whole code in .htaccess)
#redirect non www to www
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www..+$ [NC]
RewriteCond %{HTTP_HOST} (.+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]OR
#redirect www to non www
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]