Skip to main content

Self-Referencing Canonical Tags — Complete Guide

A self-referencing canonical tag is one where the page points to itself as the canonical version. It's the simplest and most important canonical implementation. If you're new to canonicals, start with our canonical tags overview.

What is a self-referencing canonical?

A self-referencing canonical is a <link rel="canonical"> tag where the href attribute points to the same URL as the current page. For example, if your page is at:

https://example.com/blog/my-post

The self-referencing canonical would be:

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

This tells search engines: "This URL is the canonical version of this page. Index this URL, not any variations."

Why every page needs one

Without a self-referencing canonical, search engines may index multiple versions of the same page:

  • https://example.com/page vs https://example.com/page/ (trailing slash)
  • http://example.com/page vs https://example.com/page (protocol)
  • https://www.example.com/page vs https://example.com/page (www)
  • https://example.com/page?ref=homepage vs https://example.com/page (parameters)

Each variation can split ranking signals. A self-referencing canonical eliminates this problem by explicitly declaring the preferred URL.

How to implement self-referencing canonicals

Static HTML

Add this to the <head> of every page:

<link rel="canonical" href="https://example.com/current-page" />

WordPress

Most SEO plugins (Yoast, Rank Math, AIOSEO) add self-referencing canonicals automatically. Check your plugin settings to confirm this is enabled.

Dynamic sites

Use your server-side language to generate the canonical URL based on the current request. The URL should match the canonical URL you want search engines to use.

Shopify

Shopify adds self-referencing canonicals automatically to products, collections, and pages. No manual implementation needed.

Common mistakes

Missing canonical on some pages

Some pages may be missing canonical tags if your CMS or template doesn't add them consistently. Use the Canonical Tag Checker to scan your site and identify pages without canonicals.

Canonical pointing to a different URL

If your canonical tag points to a different URL, it's a cross-domain or cross-page canonical, not a self-referencing one. Make sure the href matches the current page URL exactly.

Canonical with trailing slash mismatch

If your canonical URL has a trailing slash but the actual URL doesn't (or vice versa), search engines may get confused. Ensure the canonical URL matches the URL you want to be indexed.

How to verify self-referencing canonicals

Use the NodSEO Canonical Tag Checker to scan your site and verify that every page has a correct self-referencing canonical. The tool will flag:

  • Pages missing canonical tags
  • Canonical tags pointing to different URLs
  • Canonical chains (canonical → canonical → canonical)
  • Relative canonical URLs (should be absolute)

Frequently Asked Questions

What is a self-referencing canonical?

A self-referencing canonical is a canonical tag where the href points to the same URL. For example, the page at example.com/page has a canonical tag with href='https://example.com/page'.

Should every page have a self-referencing canonical?

Yes. Every page should have a self-referencing canonical unless you have a specific reason not to. It prevents issues with URL variations like trailing slashes, HTTP vs HTTPS, and query parameters.

Does a self-referencing canonical help SEO?

Yes. It tells search engines which URL is the canonical version, preventing duplicate content issues from URL variations. It's a safety net that costs nothing to implement.

What if I have canonical tags pointing elsewhere?

If you have cross-domain canonicals or canonicals pointing to different URLs, those take precedence over self-referencing. But for most pages, a self-referencing canonical is the correct choice.

How do I check if a page has a self-referencing canonical?

View the page's HTML source and look for <link rel='canonical'> in the <head>. The href should match the current page URL. You can also use the NodSEO Canonical Tag Checker to scan multiple pages.

Related Comparisons

Related Guides

Check Your Canonical Tags

Scan your site to verify every page has a correct self-referencing canonical.

Open Canonical Tag Checker