Technical
Notice

Sitemap contains duplicated URLs

This error appears when the same URL is listed more than once in your sitemap, in the same file or in two different files. Here's what it means and how to find where the repetition comes from so you can remove it.

What this error means

The sitemap is the list of pages you give Google so it knows what's on your website and what you want it to crawl. Normally each page appears once. When Ruk Audit finds the same URL repeated, character for character, it flags it with this warning. Many websites, especially on WordPress, don't have a single sitemap but a sitemap index, a file that groups smaller ones, like the one for blog posts or the one for pages. If a page is in two of them, it counts as duplicated even if each file looks correct on its own. Variants of the same page, such as the version with and without www or with and without a trailing slash, don't trigger this warning, because Ruk Audit only flags identical addresses. The repetition usually comes from plugins, for example when a language plugin like WPML or Polylang is combined with Yoast or Rank Math, or when two plugins generate a sitemap at the same time. It also appears with hand-made sitemaps, repeated imports or an old sitemap that's still in the index.

Why removing duplicate URLs from the sitemap matters

A repeated URL doesn't invalidate the sitemap. Google's sitemaps team explained in 2012 that submitting the same URL several times changes nothing in crawling or indexing, so the severity is low. Even so, it's worth fixing because of what's usually behind it.

Impact on SEO rankings

This error doesn't make you lose rankings, and fixing it won't make you climb in the results either.

Crawling and indexing obstacles

John Mueller, from Google, advises having each URL in a single sitemap. That's what lets you review indexing in Search Console sitemap by sitemap without the same page showing up in two.

Negative signals for site quality

A repeated URL usually reveals a flaw in how the sitemap is put together, such as two plugins generating it or an old sitemap forgotten in the index. When you fix it, take the chance to check that no important page is missing.

How to fix it step by step

If this error showed up in your audit, here are the steps to leave it behind.

Step 1

Review which URLs appear repeated

Ruk Audit gives you the list of affected addresses. Write down two or three to use as a reference in the following steps.

Step 2

Find out which file they're duplicated in

Open your sitemap in the browser, press Ctrl+F on Windows or Cmd+F on Mac and search for one of the URLs you wrote down. If it appears twice in that same file, you've found the source. When the sitemap is an index, like the sitemap_index.xml generated by Yoast or Rank Math, you'll see the list of sitemaps it groups. Open each one and repeat the search until you find the two files where it appears. Appearances in image, video or news sitemaps don't count, because those sitemaps repeat pages on purpose and Ruk Audit leaves them out.

Step 3

Keep each URL in a single sitemap

If two plugins are creating a sitemap, disable the sitemap in one of them so you keep a single index. If the source is the language plugin, look in its support docs for the combination with your SEO plugin, because each one is fixed with a different setting. If an old sitemap remains in the index, remove it. And if you made the sitemap by hand or it comes from an import, delete the repeated lines. Then open it again and search once more for the URLs you wrote down to confirm they now appear only once.

Step 4

Submit the sitemap to Google Search Console

Once it's clean, submit it again from the Sitemaps report so Google reads it again. Finally, run the audit again in Ruk Audit to confirm that the error is gone.

Does your site have this problem?

Audit your website for free and discover if this and other SEO errors are affecting your ranking.

Get a free audit. Over 3022 reports delivered.
Hey, wait a moment
To analyze a website, you first need to create an account in the application. Click the button below to go to the registration screen.
Create account