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-postThe 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/pagevshttps://example.com/page/(trailing slash)http://example.com/pagevshttps://example.com/page(protocol)https://www.example.com/pagevshttps://example.com/page(www)https://example.com/page?ref=homepagevshttps://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)