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:, 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">
<link rel="canonical" href="" />

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

<link rel="canonical" href="" />

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

HTTP/... 200 OK

Link: <>; 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

Ideal for SEO professionals, consultants and digital marketing agencies.

Try our fully featured 14 day trial. No credit card required.

Try Sitebulb for Free

Sitebulb Cloud

Perfect for collaboration, remote teams and extreme scale.

Cloud crawling with no project limits and very generous crawl limits.

Explore Sitebulb Cloud