How to fix SEMRush non-canonical URL error in Sitemap

If you have encountered the “non-canonical URL in Sitemap” error. Don’t worry; this blog post will show you how to fix it in just a few simple steps! So read on and get your site back on track!

canonical URLs

What is a non-canonical URL?

A canonical URL is the preferred URL for a web page. A non-canonical URL is any other variation of the page’s address. Canonicalization is the process of determining which version of a URL is the “true” or “preferred” version.

Canonical URL Example

Examples of Non-Canonical URLs of the same page

Sitemaps can include canonical and non-canonical URLs from user errors or your content management system (CMS) selecting the incorrect canonical version.

Why shouldn’t you have non-canonical URLs in your sitemap?

A sitemap helps search engines index the site’s content. However, some pages should not be included in a sitemap, as they are not intended to be indexed by search engines. These pages are known as non-canonical URLs. Non-canonical URLs can include pages that are duplicates of other pages on the site or that are only accessible through different URL parameters. Including these pages in a sitemap can confuse search engines. For this reason, it is essential to understand how to identify and exclude non-canonical URLs from a sitemap.

How do I fix non-canonical URLs in a Sitemap?

A sitemap is a file that contains a list of all the URLs on your website. This list helps search engines crawl and index your site more efficiently. Non-canonical URLs are duplicate versions of the same page, which can occur for various reasons (e.g., WWW vs. non-WWW, HTTP vs. HTTPS). These duplicate URLs can cause problems for your website because they can be indexed by search engines, hurting your site’s ranking. Continue reading to learn how to fix these errors quickly:

  1. Identify the non-Canonical URLs

    non-canonical urls

    First, Identify which URLs are Non-canonical in your Sitemap. The non-canonical URL error shows up in the SEMrush Audit under “incorrect pages found in sitemap.xml.”

  2. Find the Correct Canonical URL

    correct canonical url

    Open the error reports non-canonical URL in your browser, then determine what the correct canonical should be. You can do this by comparing the browser URL and by viewing the source code.

    In the source code, you will be looking for the rel canonical tag:

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

    What should be the correct canonical tag? It’s typically the most human-friendly version of the URL, something you could easily share with a friend.

  3. Update the URL

    yoast canonical settings

    Using a CMS such as WordPress and the Yoast plugin, you can update the Canonical URL logged into your website under the Advanced Yoast Settings. Other SEO plugins use a similar approach; if you created your sitemap manually, you would need to edit the file.

  4. WWW vs non-WWW

    url settings

    If you noticed that the majority of your website has mismatched URLs creating a non-canonical error:

    e.g., vs.

    It’s easier and faster to fix the WordPress Address + Site Address, along with using Better Search n Replace plugin to resolve your issue, rather than repairing individual pages.

  5. SSL vs Non-SSL

    really simple ssl

    Really Simple SSL automatically detects your settings and configures your website to run over HTTPS. The entire site will move to SSL. That includes your homepage, pages, posts, custom post types, categories, tags, images, widgets… Everything!

    So if you noticed that unsecured content is creating non-canonical errors, this is the fastest and easiest fix.


If you still have issues with the “non-canonical URL in Sitemap” error after following these instructions, please do not hesitate to contact us for help. Our team of experts is more than happy to assist you in getting your website back up and running as smoothly as possible. Thanks for reading!


  • Are canonical URLs bad for SEO?

Published on: 2022-08-24
Updated on: 2023-08-09

Avatar for Isaac Adams-Hands

Isaac Adams-Hands

Isaac Adams-Hands is the SEO Director at SEO North, a company that provides Search Engine Optimization services. As an SEO Professional, Isaac has considerable expertise in On-page SEO, Off-page SEO, and Technical SEO, which gives him a leg up against the competition.