A sharp-eyed search marketer noticed that Yoast was generating duplicate sitemaps. It’s not known how long this has been happening, but the head of SEO at Yoast acknowledged the bug and noted that Yoast is aware of the problem and says it is working on a fix.
Once this duplicate sitemap bug was discovered however, checking on other SEO plugins revealed that a similar issue was happening to other plugins as well, but that it wasn’t endemic to all SEO plugins.
Brenda Malone (@_brendamalone) discovered the bug and tweeted to Yoast about it:
@yoast@jonoalderson Is there a way to turn off the duplicate xml sitemaps that Yoast is creating? page .com/page-sitemap.xml and page .com/page-sitemap1.xml Is there a specific reason why these are being created? Thanks.
— Brenda Malone, Triple-Vaxxed and Still Masking (@_brendamalone) March 21, 2022
Someone from Yoast responded that they know about the bug and have flagged it internally for fixing it:
Hey @_brendamalone, the easiest fix for now might be to set up redirect for the ‘1’ version to the plain version (for each post type affected).
In the meantime, I’ve definitely seen a ticket in our internal tracker to address this, so I’ll see if I can find it and dust it off.
What’s really weird is that this sitemap bug is not limited to Yoast.
A similar bug can be found in many other SEO plugins (but not in all of them).
It’s kind of weird that several SEO plugins would exhibit similar behavior with regards to a bug.
Something to consider is that plugin makers are bound by the WordPress open source license that dictates that plugins and themes for WordPress are considered derivative works. This is a longstanding issue that at one point was clarified by Matt Mullenweg himself in 2015.
“WordPress is under a license called the GPL, which basically says you can do whatever you like with the software, but if you distribute changes or create derivative works they also need to be under the GPL. Think of it like a Creative Commons Sharealike license.
In the past people weren’t sure if themes for WordPress were derivative works and needed to be GPL. In 2009 we got an outside legal opinion that cleared up the matter saying that the PHP in themes definitely had to be GPL, and for CSS and images it was optional. Basically everyone in the WP community went fully GPL, sometimes called 100% GPL, for all the files required to run their theme (PHP, JS, CSS, artwork).”
So it could be that certain approaches toward generating a sitemap may themselves be open source and available to all the SEO plugin companies to use and this may explain why other SEO plugins contain the same or similar bug to the one that Yoast has.
Sitemap Bug Affects Other SEO Plugins
This sitemap bug doesn’t just affect Yoast and Rank Math. It affects other SEO plugins, too.
This bug has been confirmed on the following SEO Plugins:
Rank Math SEO Plugin
SEOPress WordPress SEO Plugin
AllineOneSEO WordPress SEO Plugin
If your SEOPress sitemap for “posts” starts like this:
There are duplicates that are generated on these URLs:
AllineOneSEO WordPress SEO Plugin
If your AIOSEO plugin generates this URL for the “posts” sitemaps:
It also generates these:
The above is true for Rank Math plugin as well.
WordPress Sitemap Bugs Not Everywhere
Brenda Malone researched this issue and shared that some SEO Plugins appear to not contain this bug.
The following SEO Plugins generate sitemaps correctly:
SEO Ultimate PRO WordPress Plugin
How Big of a Problem is This?
The best practice for SEO is to make things easy for search engines.
The more errors are introduced the likelier it is that the search engine bots may start tripping over the mistakes and generating unforeseen issues, especially if this issue is compound by other errors on a site.
The meaning of SEO is search engine optimization. The easier you make it for the search engine to crawl and discover web pages the better it is for SEO.
Mistakes are the opposite of optimizing. The more mistakes are generated by a website the less optimized a site is.
In terms of SEO, an argument can be made to minimize the effect of these errors and say that yes, the site can keep on limping and perform normally despite these errors.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.