No conflicting canonical tags
highcanonical_conflict
Checks for conflicting canonical signals.
What does this rule check?
Conflicting canonicals occur when the HTML canonical tag points to one URL while the HTTP header or other signals point to a different URL. This sends mixed signals to search engines.
Why is this important?
Conflicting canonical signals confuse search engines and can lead to the wrong page being indexed, or both pages being treated as separate content.
How to fix
Ensure all canonical signals (HTML tag, HTTP header, sitemap) agree on the same preferred URL.
Examples
Incorrect
<!-- HTML says one URL -->
<link rel="canonical" href="https://example.com/page-a" />
<!-- HTTP header says another -->
Link: <https://example.com/page-b>; rel="canonical"
Correct
<!-- Both point to the same URL -->
<link rel="canonical" href="https://example.com/page-a" />
<!-- HTTP header also points to page-a -->
Agent fix snippet
Copy this snippet and paste it into your AI coding agent to fix this issue automatically.
Check for canonical conflicts:
1. HTML <link rel="canonical"> tag
2. HTTP Link header
3. Sitemap entries
All must agree on the same preferred URL.