---
title: "The canonical is missing or written wrongly"
description: "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."
url: https://ursy.com/issues/canonical-missing-or-malformed/
updated: 2026-11-30T12:53:03+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/canonical-missing-or-malformed/
---

# 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.

The page has no canonical, or one [Google](https://ursy.com/wiki/google/) cannot use: a relative address, in the wrong place, with a # part, or a near miss of the real address.

## Why it matters {#why-it-matters}

A canonical link tells [search engines](https://ursy.com/wiki/search-engine/) 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](https://ursy.com/wiki/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 {#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](https://ursy.com/wiki/seo-search-engine-optimisation/) plugin writes the canonical; check that the site address in Settings, General uses https. Test with the [Canonical Tag](https://ursy.com/wiki/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 the problem looks like {#what-the-problem-looks-like}

```
<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](https://ursy.com/wiki/trailing-slash/) the real address has.

### What it looks like fixed {#what-it-looks-like-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 {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
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/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#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 {#shopify}

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

### Wix {#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 {#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 {#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 {#official-source}

[Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)

## Questions {#questions}

### Is a canonical required? {#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? {#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.

---

**Cite this page:** The canonical is missing or written wrongly. URSY.com. Updated 30 November 2026. https://ursy.com/issues/canonical-missing-or-malformed/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[The canonical is missing or written wrongly](https://ursy.com/issues/canonical-missing-or-malformed/), URSY.com`. One section: add its id, for example https://ursy.com/issues/canonical-missing-or-malformed/#section-id (every heading above has one).

Section links: https://ursy.com/citations/21/#p-5648 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/canonical-missing-or-malformed/
- As JSON: https://ursy.com/issues/canonical-missing-or-malformed/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
