How can I resolve duplicate content for SEO
3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 4, 2018 (RSS)
By JeffC - July 3, 2018 - edited: July 3, 2018
Hi
Please can you advise me how to resolve pages appearing as duplicates to Google. These are the same page, but appear as different pages to Google
https://www.domain.co.uk
https://domain.co.uk
http://www.domain.co.uk
http://domain.co.uk
I've been reading up on canonical links but I don't understand how this would work with content pulled from a database?
I see that there is a plugin called Yoast, which works with Wordpress, but I haven't been able to learn from that.
This is the htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^permalinks_dispatcher\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cmsAdmin/plugins/permalinks_dispatcher.php [L]
</IfModule>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 46.37.162.38/31
deny from 46.37.162.40/29
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php56___lsphp .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Any advice you could give me would be hugely appreciated
By Toledoh - July 3, 2018
I use canonical url's with;
<link href="<?php echo ($pageURL) ?>" rel="canonical" /> <!-- Required to stop duplicate pages in Webmaster Tools when using permalinks -->
Where each $pageURL is created by the the site domain plus the page permalink. ie
$pageURL='https://domain.com'.$record['permalink'];
I use permalinks .htaccess code to force non-www and https.
The I use Google Search Console (webmaster tools) to set a preferred domain.
Hope that helps?
Tim (toledoh.com.au)