CMSKite

Glossary · SEO

Canonical URL

A canonical URL is the address you tell search engines to treat as the real one when the same page can be reached at more than one address. You name it with a link tag in the page’s head, and search engines usually show and credit that address in their results.

DashboardStart freeNo card. Your blog is live in a minute.

An example

One blog post can be reached at several addresses: with tracking tags from an Instagram link, with and without a trailing slash, or on a second site that shows the same post. Each copy carries the same line, naming one address:

In the head of https://bakery.example/blog/wedding-cake-guide?utm_source=instagram · html
<link rel="canonical" href="https://bakery.example/blog/wedding-cake-guide">

Search engines then treat every copy as that one page, so the links people share to any of them count towards it.

Why it matters for a small-business blog

A small blog has few links from other sites. When those links are spread over three addresses for one post, the post looks weaker than it is. A canonical gathers them on one address.

It matters most when a post lives in two places: on your website and on a hosted blog link, or republished from a guest post or a newsletter. Without a canonical, search engines choose which copy to show themselves, and it may not be the one on your domain.

Common mistakes

  • A relative or wrong address. Google asks for absolute addresses (https://…). A typo, or an http:// address that redirects, points the signal somewhere else.
  • Every page pointing at the home page. Some themes set one canonical for the whole site. That tells search engines your posts are copies of your home page.
  • Two canonical tags that disagree. A site builder prints one and a plugin or script adds another. Google’s JavaScript guidance says a canonical set by a script should not contradict the one in the page’s HTML.
  • The tag outside the head. Google only accepts a canonical link in the <head> of the page.
  • Using noindex or robots.txt instead. Google recommends neither for choosing a canonical: noindex removes the page from search altogether, and a page blocked in robots.txt cannot be read at all.
  • Treating it as an order. Google calls it a strong signal, not a rule. Redirects, internal links and a sitemap that all name the same address make it stick.

How CMSKite handles it

  • Every post has one. It is the post’s address on your website once your site is connected, and its address on your free blog link until then. A writer can set a different one in the post’s search settings, for a post that was first published elsewhere.
  • The free link steps aside. Once your site shows the posts (the embed loads there, or your site reads posts through the API), each post on the free link names the copy on your site as canonical, and the free link’s sitemap stops listing posts. See Your free blog link.
  • The embed sets it in the browser. With a post open, the two-line embed removes any canonical already on the page and adds the post’s own. If your site builder prints its own canonical in the HTML, the two disagree: remove the builder’s where you can (on WordPress, with this snippet), or check one post with URL Inspection in Search Console.
  • Through the API, each post’s seo.canonicalUrl is empty unless the writer set one; your page uses it, or else the post’s own address. The code is in Making your posts findable.
  • A renamed post never splits. On the free link the old address redirects to the new one; through the API, the response tells your site to redirect.

Sources

Questions

Is a canonical URL the same as a redirect?
No. A redirect sends people and crawlers to another address. A canonical leaves every copy working and tells search engines which one to show. Use a redirect when the old address should not be visited any more, such as after renaming a post.
What happens if I do not set one?
When Google finds the same content at several addresses, it picks one as canonical itself. Setting the tag is how you tell it which one you want.

Checked