NeovaZaawansowana platforma SEO

Canonical wskazuje URL z kodem 4xx

W Neova Działa na samym crawlu: nic nie trzeba ustawiać.

Ostatni przegląd reguły: 17 października 2026 · Aktualizacja poradnika: 7 lipca 2026

Canonical kieruje wyszukiwarki do URL, który nie istnieje lub jest nieosiągalny. RFC 6596 i wskazówki Google z 2013 roku to odradzają.

Co możesz zrobić

Skieruj canonical na URL, który zwraca 200, zwykle sam URL lub jego działający zamiennik.

Jak Neova to wykrywa

Neova odpytuje każdy adres i czyta odpowiedź serwera.

Dlaczego Neova to oznacza

  • Canonical wskazuje URL, który nie istnieje lub jest nieosiągalny, więc nie ma preferowanej strony do zaindeksowania.
  • RFC 6596 przestrzega przed celem canonicala zwracającym błąd 4xx.
  • Google nie indeksuje URL-i 4xx, a jego wytyczne o canonicalach mówią, by sprawdzić, czy cel istnieje.

Źródła

Ticket, który tworzy

Ta część jest na razie po angielsku.

IN-021 · Canonical Points to a 4xx URL

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

Pełny poradnik

Ta część jest na razie po angielsku.

This check fires when a page's rel="canonical" points at a URL that returns 404 Not Found. You are telling Google "the master version of this content lives over there," while "over there" is a dead end — so Google throws the hint away, decides for itself which URL to index, and often lands on the wrong one.

What This Check Flags and Why It Stings

A canonical is a suggestion, not a command. When that suggestion resolves to a 404, Google has nothing to consolidate signals onto, so it silently ignores the annotation and picks a canonical from the cluster on its own. The page you actually care about can end up demoted, deduplicated against a random parameter variant, or dropped from the index while a URL you never wanted to rank takes its place.

What makes the 404 case the cleanest to reason about is that Google's response is decisive: a 404 is a permanent, unambiguous "there is nothing here," so there is no waiting and no retry loop — the hint is thrown out on the spot. That decisiveness cuts both ways. You are not stuck in the limbo a 5xx creates, but you also get no grace period; the moment Googlebot fetches that dead target, your intended canonicalization is gone and the cluster is up for grabs. On a big template where one broken variable feeds the canonical of thousands of pages, that is thousands of URLs surrendering their canonical choice in a single crawl.

A Real Failing Example

Here is the canonical you shipped in the <head> of /blog/color-theory/:

<link rel="canonical" href="https://example.com/blog/colour-theory/" />

Note the British spelling. That URL was renamed months ago. Curl the target and the chain ends in a wall:

$ curl -sIL -A 'Mozilla/5.0' https://example.com/blog/colour-theory/

HTTP/2 404
content-type: text/html; charset=utf-8
x-robots-tag: noindex

No redirect, no rescue — just a hard 404. Google fetches the canonical target, sees it does not exist, and discards the hint. The self-referencing canonical the page should have carried never gets a chance to do its job.

The fix is to repoint the tag at a live 200 URL — almost always the page itself:

<link rel="canonical" href="https://example.com/blog/color-theory/" />
$ curl -sI -A 'Mozilla/5.0' https://example.com/blog/color-theory/

HTTP/2 200
content-type: text/html; charset=utf-8

What Google Actually Does With a 404 Canonical

Stage What Happens Impact on Your Page
Canonical parsed Google reads href and queues the target for verification None yet
Target fetched Server returns 404 — the URL has no content Hint marked invalid
Signal ignored Google drops your canonical and runs its own canonicalization You lose control of the choice
Google picks A different URL in the cluster becomes the Google-selected canonical Wrong URL may rank; equity splits
Reported Search Console flags "Alternate page with proper canonical tag" or "Duplicate, Google chose different canonical" Confusing coverage numbers

How to Detect It

  1. Screaming Frog: crawl the site, open the Canonicals tab and filter to Canonical Links to Non-Indexable URL, then cross-reference against the Response Codes > Client Error (4xx) tab. Any canonical target appearing in both is a 404 canonical. Enable "Always Follow Canonicals" so the crawler chases the target's status.
  2. GSC URL Inspection: inspect the affected page. Under Page indexing, check "User-declared canonical" versus "Google-selected canonical." A mismatch where your declared URL is a 404 is the smoking gun.
  3. curl -IL: pull the canonical href straight from the source and hit it: curl -sIL -A 'Mozilla/5.0' <canonical-target>. A terminal 404 with no redirect confirms it.

How to Fix It

  1. Extract the current canonical target from the page source.
  2. Confirm it 404s with curl -I — rule out a transient blip by retrying once.
  3. Decide the correct live destination: the page itself (self-referencing) in the vast majority of cases, or the true master if this really is a duplicate.
  4. Update the <link rel="canonical"> to that 200 URL and confirm with curl -I that it returns 200.
  5. If the old target was renamed rather than deleted, add a 301 from the dead URL to the new one so any stray inbound links and old canonicals resolve gracefully.
  6. Request validation in the GSC Page Indexing report and re-inspect the URL to confirm Google now honors your canonical.

FAQ

Will Google Index My Page at All If Its Canonical 404s?

Usually yes — it just ignores your broken hint and canonicalizes on its own. The risk is not deindexation so much as losing the vote: Google may consolidate onto a URL you did not choose.

Is a Self-Referencing Canonical Always the Safe Fix?

For a standalone, indexable page, yes. Point the canonical at its own live URL. Only point elsewhere when the page is a genuine duplicate of another live 200 page.

The Target Used to Exist — Can I Just 301 It Instead of Editing Every Canonical?

A 301 turns a 404 canonical into a redirecting canonical, which is a separate (milder) problem — see Canonical Points to a Redirecting URL. Cleanest is to fix the canonical to the final 200 URL and keep the 301 for stray links.

How Fast Will Search Console Clear the Error?

After you fix the tag and hit Validate, expect recrawl over days to a couple of weeks depending on the page's crawl frequency. Higher-authority pages clear faster.

A dead canonical target rarely travels alone. Work through the rest of the cluster: Canonical Points to a 5xx Error URL, Canonical Points to a Disallowed URL, and the closely related Canonical Loop. For the fundamentals, keep the Canonical Tags Complete Reference open, and if you are handling removed pages, read 404 vs 410 before deciding how to retire the dead target for good.

Znajdź to na swojej stronie

Neova uruchamia ten test i wszystkie pozostałe przy każdym crawlu, a potem zapisuje poprawkę jako ticket dla Twojego zespołu.

  • Aplikacja na Maca, Windows i Linuksa
  • Wszystkie 696 testy, każdy ze źródłem
  • Search Console i Analytics 4 połączone tylko do odczytu
  • Tickety do Jiry, Lineara i Asany

Pobierz Neova Plan Desktop Free albo Solo za darmo przez 14 dni, bez karty.

Wszystkie testy z kategorii Indeksowalność · Poradniki · Biblioteka testów

Autor: Neova Labs · Wróć do Biblioteki testów