SEO essentials · 5 checks

Canonical URL check

Find out which URL your page names as its preferred version, whether that URL works, and whether your HTML and server headers agree.

Check your page

Included in the free scan of 85 SEO and GEO checks.

What this checks

The same content is often reachable at several addresses: with and without www, with tracking parameters, or through a print view. A canonical URL tells search engines which one you want shown in results.

It is a strong hint, not an order. Google weighs it together with redirects, sitemaps and internal links.

http://example.com/shoesexample.com/shoes?ref=mailwww.example.com/shoes/https://example.com/shoes
Three addresses, one page. The canonical names the version you want indexed.

The 5 checks on this page

Each check has its own result in your report. “Learn more” in the report opens the matching card here.

DISC-001

Canonical count and syntax

Reads the HTML head and the HTTP Link header separately. The same URL declared twice is fine; two different URLs are a problem. Relative URLs work but are harder to check.

  • Pass One valid canonical
  • Suggestion A relative URL
  • Problem Conflicting URLs or an invalid value
DISC-002

Canonical and final URL relationship

Compares the canonical with the address the page finally loaded from. Pointing elsewhere can be intentional, so it is reported, not failed.

  • Pass Matches the final URL
  • Suggestion Points to another URL
DISC-003

Rendered canonical changes

Compares the canonical in the initial HTML with the one after JavaScript ran.

  • Pass Unchanged after rendering
  • Problem JavaScript changes the canonical
DISC-004

Canonical target status and directives

If we already fetched the canonical target, checks that it returns 200, does not redirect and is not noindex.

  • Pass The target works
  • Suggestion The target redirects
  • Problem The target errors or is noindex
  • Not measured The target was not fetched
DISC-013

HTML and HTTP canonical conflicts

When both the HTML and the server send a canonical, checks they name the same URL.

  • Pass Same URL
  • Problem Different URLs

Examples

Passes: One absolute canonical
<link rel="canonical" href="https://example.com/shoes">
Flagged: Two different canonicals
<link rel="canonical" href="https://example.com/shoes">
<link rel="canonical" href="https://example.com/shop">

How to fix it

WordPress

Yoast and Rank Math add a canonical to every page. To change one, use the plugin’s Advanced section. If you see two, a theme or second plugin is adding its own: keep one.

Shopify

Themes output {{ canonical_url }} in theme.liquid. Do not add a second canonical tag in a section or app.

Next.js

Set metadata.alternates.canonical per route, with metadataBase in the root layout so it becomes absolute.

export const metadata = { alternates: { canonical: '/shoes' } };

Nginx / Apache

For PDFs and other files, send the canonical as a header.

add_header Link '<https://example.com/guide>; rel="canonical"';

Check your fix

  1. View source and search for rel="canonical": there should be one.
  2. Open the canonical URL: it should load directly with status 200.
  3. Run this check again.

Questions

Should a page point its canonical at itself?

Yes. A self-referencing canonical is normal and makes the preferred address explicit.

Canonical or 301 redirect?

Use a redirect when the old address should not be visited. Use a canonical when both addresses must keep working.

Does Google always follow my canonical?

No. It is a strong signal, and Google can pick another URL if other signals disagree.

Sources

Related