Free Webinar: Website Migrations & Redirect Mapping Dos & Don’ts Sign up now!

Dealing with XML Sitemaps issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free
High This Hint is very important, and definitely warrants attention. Issue This Hint represents an error or problem that needs to be fixed.

Canonicalized URL in XML Sitemaps

This means that the URL in question has a canonical element that points to another URL, yet is included in an XML Sitemap.

Why is this important?

Your XML Sitemap should only contain URLs you wish for search engines to index. If a URL is canonicalized, this is an explicit statement to search engines that you do NOT wish for the URL to be indexed, and instead wish for the canonical URL to consolidate indexing signals.

As such, including a canonicalized URL in a sitemap provides conflicting information to search engines, and may impact what they consider is the canonical URL, which may in turn mean that unintended URLs get indexed.

What does the Hint check?

This Hint will trigger for any internal URL which has a canonical that is not self-referential, and is included in one of the submitted XML Sitemaps.

Examples that trigger this Hint:

Consider the URL: https://example.com/page-a, which is included in a submitted XML Sitemap.

The Hint would trigger for this URL if it had a canonical that pointed at any other URL;

A canonical tag in the <head> which pointed at another internal URL:

<!doctype html>
<html lang="en">
<head>
<title>example</title>
<link rel="canonical" href="https://example.com/page-b" />
...
</head>
<body>...</body>
</html>

OR a canonical tag in the <head> which pointed at an external URL:

<link rel="canonical" href="https://website.com/page-a" />

OR a canonical tag in the HTTP header which pointed at any other URL:

HTTP/... 200 OK

...
Link: <https://example.com/page-b>; rel="canonical"

How do you resolve this issue?

The current setup is technically incorrect, and may cause indexing issues.

To resolve it, you would need to do one of the following:

  1. If the URL should be canonicalized, then remove it from all XML Sitemaps. Once removed, resubmit the sitemaps on Google Search Console.
  2. If the URL should not be canonicalized, remove the canonical tag.

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.