Two HTML canonical links point to different URLs
- Fix
- Remove the extra tag at the template, plugin, or client-rendering source. Keep the intended absolute URL in the page head.
- Why
- A page should not publish competing HTML preferences.
Trace canonical links in rendered HTML and HTTP headers, choose one consistent canonical URL, and verify Google's selected version.
Multiple canonical declarations can point to different URLs, especially when a CMS and server header both add one. Google recommends choosing one canonical method because combining HTML and HTTP declarations is more error-prone. Inspect the response and rendered page, keep one correct absolute URL, align sitemap links, then check URL Inspection after recrawling.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
<link rel="canonical">, an HTTP Link response header, redirects, or sitemap inclusion. A page can look correct in its template while a plugin, CDN, or server adds a second declaration elsewhere.A canonical tag can be self-referential. The goal is not to remove every canonical element, but to ensure that the page and its duplicate variants state one coherent preferred URL. Don't diagnose a problem just because the canonical URL differs from the current URL; that is expected on a duplicate or alternate URL.
Request the URL without relying on the browser's rendered DOM. Record the final URL, status, and Link response headers. Check both HTTP and HTTPS variants if both respond.
Search the original HTML for every <link rel="canonical">. Then inspect the rendered document in DevTools in case JavaScript changes or duplicates the link.
Check a small set of URLs that use the same CMS, plugin, edge function, or rendering path. If all pages show the same bad pattern, fix the generator rather than patching isolated URLs.
Open each declared canonical URL and confirm that it returns the intended live page, uses HTTPS, and is not a redirect, error, or noindex URL.
Don't add a second canonical as a workaround for uncertainty. Google says canonicalization methods can stack and become more effective when combined, and also says not to specify different URLs as canonical for the same page with different techniques. In its ordering, redirects and rel="canonical" annotations are strong signals and sitemap inclusion is a weak one.
If the pages are true duplicates and one URL should disappear, consider a direct redirect. For a URL that has no selected canonical, see duplicate without user-selected canonical. If Google still chooses another URL, use Google chose a different canonical.
If an entire template emits contradictory URLs, test a representative page from each locale, protocol, and host variant before closing the issue. A one-page fix can leave the generator unchanged.
After deployment, fetch the URL again. Confirm one intended canonical declaration is emitted and that no header or script overrides it.
Inspect representative variants, not only the preferred page. Make sure each duplicate points to the same canonical when that is the intended cluster.
Update internal links and the sitemap to use the canonical URL. Remove stale or contradictory URLs from generated sitemap output.
Inspect an affected URL in Search Console and compare the user-declared and Google-selected canonical. Google says it might hold pages in a duplicate cluster for up to two weeks after a fix, so recheck after it has recrawled. Request Indexing is subject to quotas, so save it for your most important URLs.
3 questions people ask next, answered from the sources on this page.
Avoid it when the tags point to different URLs. Remove the source of the conflicting declaration and keep one coherent preferred URL. Google recommends choosing one canonical method because HTML and HTTP declarations together are more error-prone.
Google supports both, but recommends choosing one method. Using both can create a mismatch if the HTML and response header name different URLs.
No. Canonical signals express a preference. Google may choose another URL based on the duplicate set and other signals.
Run the free audit, then approve the fixes. Every change can be undone.