How can I resolve duplicate content for SEO

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 4, 2018   (RSS)

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?

Cheers,

Tim (toledoh.com.au)

By JeffC - July 4, 2018

Brilliant, thank you.

Jeff