Permalinks and duplicate content

4 posts by 3 authors in: Forums > CMS Builder
Last Post: March 14, 2019   (RSS)

By Toledoh - March 5, 2019 - edited: March 5, 2019

You need to insert the following into the <head> code of each page:

<link href="<?php echo ($pageurl) ?>" rel="canonical" /> <!-- Required to stop duplicate pages in Webmaster Tools when using permalinks -->

Where the $pageurl is the full url of the page with the permalink.

Cheers,

Tim (toledoh.com.au)

By daniel - March 5, 2019

Tim is correct that canonical URLs are the correct solution to this issue. For further reading and more technical specifics, I can recommend Google's documentation on duplicate content/canonical URLs: https://support.google.com/webmasters/answer/139066?hl=en

Cheers,

Daniel
Technical Lead
interactivetools.com

By JeffC - March 14, 2019

Thanks Tim, thanks Daniel

Jeff