Skip to the content
Start free

The canonical is missing or written wrongly

The page has no canonical, or one Google cannot use: a relative address, in the wrong place, with a # part, or a near miss of the real address.

Medium priority Indexing and canonicals

Why it matters #

A canonical link tells search engines which address is the main one when the same page can be reached in several ways, for example with and without tracking parameters. It is optional, but without one Google chooses for itself, and it may not choose the address you want.

A canonical only helps when it is written in a way Google accepts. Google asks for a full address, with https:// and the host name. It reads rel="canonical" only in the head, and treats the head as ended when it meets an element that does not belong there, such as an image or an iframe. An address with a # part, the http version of an https page, or a near copy of the real address with a different slash or capital letters sends a weak or wrong signal.

How to fix it #

Give every page one canonical in the head that names its own full, final address, exactly as it answers: same scheme, host, path and slash. Put it near the top of the head, before anything that might add other elements, and leave out # parts and extra attributes.

On WordPress your SEO plugin writes the canonical; check that the site address in Settings, General uses https. Test with the Canonical Tag Checker.

  1. Find the canonical in the page source.
  2. Make it a full https address that matches the page exactly.
  3. Move it into the head, near the top.
  4. Check the page again.

What it looks like, and fixed #

The problem
<body>
  <img src="/logo.png" alt="Example">
  <link rel="canonical" href="/shoes/red-trainers">

A relative address, placed after an image in the body, and without the trailing slash the real address has.

Fixed
<head>
  <meta charset="utf-8">
  <title>Red trainers | Example</title>
  <link rel="canonical" href="https://www.example.com/shoes/red-trainers/">
</head>

A full https address that matches the page exactly, near the top of the head.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
My website [your website address] runs on [your platform, e.g. a hand-built PHP site]. A check says [the page address] has no canonical, or one Google cannot use. First fetch the page and show me its canonical, where it sits in the HTML, and the exact address the page answers on after any redirects (or ask me to paste the source). Tell me in plain words what is wrong: missing, relative, outside the head, with a # part, on http, or a near miss of the real address. Then give me the exact tag: one link rel="canonical" naming the full, final https address of the page, matching its host, path and trailing slash exactly, near the top of the head. If a template writes it, fix the template so every page gets its own address. Rules: back up first, do not change page addresses or remove other head tags. Finally, tell me to re-check with the URSY.com Canonical Tag Checker at ursy.com/canonical-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Your SEO plugin writes the canonical for you. Check that both addresses in Settings, General start with https and use the host you want.

Shopify

Make sure the head of theme.liquid contains <link rel="canonical" href="{{ canonical_url }}">, above any app snippets.

Wix

Wix adds a canonical by default. If you set a custom one in the page SEO settings, check it is a full https address.

A hand-made site

Add one canonical link with the full address to the head of each page, before scripts, images or anything that belongs in the body.

Check it is fixed #

Run the URSY.com Canonical Tag Checker (/canonical-checker/) on the page. It should find one canonical in the head that exactly matches the final address.

Official source #

Google Search Central: How to specify a canonical URL

Questions #

Is a canonical required?

No, but without one Google chooses the main address itself, and it may not choose the one you want.

Does a trailing slash really matter?

Yes. With and without the slash are two different addresses, so the canonical should match the one the page answers on.

More problems in Indexing and canonicals

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com