{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-canonical-header-2f94a24efb6e","title":"Sync HTML Canonical Tags and Link Headers for SEO","summary":"Ensure the HTML canonical tag matches the HTTP Link header to avoid conflicting signals to search engines, resulting in consistent canonical URL declarations for better indexing.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-canonical-header-2f94a24efb6e","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-canonical-header-2f94a24efb6e","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-canonical-header-2f94a24efb6e.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-canonical-header-2f94a24efb6e\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Verify the rendered HTML and HTTP response headers, not just source files, to ensure consistency between the canonical tag and Link header.","instructions":"---\nname: canonical-header\ndescription: \"Use when auditing metadata, crawlability, structured data, or indexability related to Sync HTML canonical tags and Link headers. Verify the rendered HTML and HTTP response rather than relying only on source files.\"\nmetadata:\n  category: seo\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/seo\/canonical-header\n---\n\n# Sync HTML canonical tags and Link headers\n\nConflicting canonical-url signals can lead search engines to ignore both declarations, potentially causing duplicate content issues and incorrect indexing.\n\n## Quick Reference\n\n- Ensure the `rel=\"canonical\"` tag in your HTML matches the `Link` canonical-url header if both are used\n- Avoid sending conflicting signals to search engines about the primary version of a page\n- Maintain consistency across all methods of declaring your canonical URL\n\n## Check\n\nCompare the HTML canonical tag with the HTTP Link header to ensure they point to the exact same URL.\n\n## Fix\n\nUpdate either the HTML tag or the HTTP header so that they provide a consistent canonical URL signal.\n\n## Explain\n\nExplain the risks of sending conflicting technical SEO signals to search engine crawlers.\n\n## Code Review\n\nReview metadata generation, rendered HTML, structured data, and response headers related to Sync HTML canonical tags and Link headers. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/seo\/canonical-header\n","use_cases":["Auditing metadata and crawlability for SEO compliance","Verifying structured data and indexability for search engines","Fixing duplicate content issues caused by conflicting canonical URLs"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/canonical-header\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:28:10.000000Z","updated_at":"2026-11-23T04:54:44.000000Z","seo_title":"Sync HTML canonical tags and Link headers for SEO","seo_description":"Avoid conflicting canonical signals by aligning HTML canonical tags with HTTP Link headers for better search engine indexing.","seo_keywords":["canonical tag and Link header alignment","SEO canonical URL consistency","HTML canonical tag verification","search engine indexing best practices"]}}