In short
Ahrefs flags "Non-canonical page in sitemap" for sitemap URLs whose canonical tag points to a different URL. Google treats sitemap inclusion as a canonicalization signal, so the sitemap and the canonical tag disagree. Replace each listed URL with its canonical, or fix the canonical if the tag is what's wrong.
Google uses sitemaps as one of the signals for choosing canonical URLs. Listing a non-canonical URL weakens your own canonical tags.
Which one is wrong?
| Situation | Fix |
|---|---|
| Sitemap lists /page, canonical is /page/ | Make the sitemap use the canonical format |
| Sitemap lists variants that canonicalize to the main product | Exclude variants from the sitemap |
| A page has a wrong canonical (pointing to the home page, say) | Fix the canonical tag |
| Paginated pages canonicalize to page 1 | Use self-referencing canonicals on paginated pages |
How to fix it
WordPress: sitemaps list the post URL. Conflicts usually come from custom canonicals in a post's Advanced tab. Clear the custom canonical, or exclude that post from the sitemap.
Shopify: sitemaps list clean product URLs; conflicts often come from theme code changing canonicals.
Webflow: check Page settings > SEO settings > Page canonical URL, and the global canonical in Site settings > SEO.
Wix: check the canonical in the page's SEO settings.
Custom builds: use one function for both the canonical tag and the sitemap entry.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Google Search Central, How to specify a canonical URL
Google Search Central, Build and submit a sitemap

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



