Permalinks and duplicate content
4 posts by 3 authors in: Forums > CMS Builder
Last Post: March 14, 2019 (RSS)
By JeffC - March 5, 2019
My customer has started using an SEO company to improve the rankings of his site and they have flagged-up an issue. I'm not sure if what they are saying is accurate and, if it is, what i can do about it.
Basically, these two urls, which are actually the same page, are being flagged as duplicate content.
www.domain.co.uk/file.php?title-1
www.domain.co.uk/title/
The seo company has asked me to remove one of them, which i obviously can't do.
Any advice as how how you deal with this scenario would be welcome.
Is there a chance that i have set up the permalinks incorrectly?
Thanks
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.
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,
Technical Lead
interactivetools.com