Page 1 of 1

adding cannonical tags for a page

Posted: 08 Mar 2021, 11:58
by Jens
Hi Karl,

I have some pages that contain duplicate content. I want to use canonical tags to specify which version is the main one and should get indexed. I cant find a way to add canonical tags for pages in X3. Where could I add the cannonical URL in X3? Adding the code to the <head> section of pages seems not to be possible. 

Thank you!
J. 

Re: adding cannonical tags for a page

Posted: 08 Mar 2021, 22:01
by mjau-mjau
This request is a bit unclear. X3 already adds canonical tags to all pages, which prevents problems with http, https, www and ?queries.
Code
<link rel="canonical" href="https://demo.photo.gallery/">
Canonical should only be used if two pages are 100% identical. If they are, then the question would be why two identical pages exist. If they are not identical, then it's fundamentally wrong to assign the same canonical link between two different pages.

Instead, you need to disable "indexing" of the page that contans the duplicate content. Go to the page's settings > page > scroll down to "SEO", and assign "noindex" in the robots field:
Image