Welcome to WebmasterWorld Guest from 54.161.130.145

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

Canonical Link Tag on every page for Google's benefit?

     
11:13 pm on Nov 26, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2004
posts: 308
votes: 0


My site is 50% static HTML and 50% Wordpress. On each of the Wordpress pages, there is <link rel='canonical' href='...> on each page with a link back to that page.

My question is; should I do this on the rest of my site (static pages)? Is there any benefit to doing it?
12:24 am on Nov 27, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:July 19, 2013
posts:1097
votes: 0


I do even on sites that are canonicalized via htaccess without much chance of on-site duplication, just because if there's a lazy or forgetful scraper out there who copies a page(s) and forgets to change it then their copy is pointing to the original as the source.

Basically I go with the theory of:
"Can't really hurt, but could help, so why not?"
7:45 am on Nov 27, 2013 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:11657
votes: 254


Canonicalization errors can occur on static pages as well as dynamic pages. The rel="canonical" link provides some extra insurance. As JDT suggests, why not use it?
7:59 am on Nov 27, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2004
posts: 308
votes: 0


Thanks, guys.

Just to confirm, on each page I should only be inserting <link rel='canonical' href='link to page'> and nothing else?
9:16 am on Nov 27, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:July 19, 2013
posts:1097
votes: 0


Yes, just make sure it goes in the <head></head> section or it will be ignored for security reasons [if it wasn't ignored in the <body></body> section someone could come along and drop it in the comments on sites that allow them, etc] and it's best to use a fully-qualified URL, so

<link rel="canonical" href="http://www.example.com/the-path/to-the-file.ext">

Anywhere After
<head>

But Before
</head>

Edit: Very minor edit

[edited by: JD_Toims at 9:29 am (utc) on Nov 27, 2013]

9:20 am on Nov 27, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2004
posts: 308
votes: 0


Excellent, thanks everyone!
1:46 pm on Nov 27, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2004
posts: 308
votes: 0


sorry - could I just ask one more question?

We <meta name="robots" content="noindex"> our 'cart' page as we have no need to index this and also want to prevent any https pages being indexed.

Although this is 'no-index' should I still use the canonical tag for the http version?

(hope this makes sense!)
7:02 am on Nov 28, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10590
votes: 21


the link rel canonical is an indexing suggestion for google, so if you have specified a meta robots noindex element, the link rel canonical is irrelevant.