Search…

X3 Photo Gallery Support Forums

Search…
 
Jens
Topic Author
Posts: 2
Joined: 03 Mar 2021, 14:35

adding cannonical tags for a page

08 Mar 2021, 11:58

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. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 12765
Joined: 30 Sep 2006, 03:37

Re: adding cannonical tags for a page

08 Mar 2021, 22:01

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