canonical-header
Installation
SKILL.md
Sync HTML canonical tags and Link headers
Conflicting canonical-url signals can lead search engines to ignore both declarations, potentially causing duplicate content issues and incorrect indexing.
Quick Reference
- Ensure the
rel="canonical"tag in your HTML matches theLinkcanonical-url header if both are used - Avoid sending conflicting signals to search engines about the primary version of a page
- Maintain consistency across all methods of declaring your canonical URL
Check
Compare the HTML canonical tag with the HTTP Link header to ensure they point to the exact same URL.
Fix
Update either the HTML tag or the HTTP header so that they provide a consistent canonical URL signal.