[ad_1]
Widespread WordPress search engine optimisation plugin, Rank Math, has been discovered to have a bug that causes it to generate duplicate sitemap recordsdata. This unusual bug in how sitemaps are generated is just like one which impacts Yoast, however the best way Rank Math handles it’s completely different.
Web site Sitemap
A sitemap is a vital a part of SEO. It tells search engines like google and yahoo which pages have been newly added to a website and which pages have been up to date.
The sitemap helps a search engine prioritize their web site crawling by alerting it to new content material that must be listed.
Due to the significance of a sitemap for search engine optimisation, it’s a good follow that sitemaps are generated appropriately.
Google’s developer web page about sitemaps says:
“A sitemap is a file the place you present details about the pages, movies, and different recordsdata in your website, and the relationships between them.
Serps like Google learn this file to crawl your website extra effectively.
A sitemap tells Google which pages and recordsdata you suppose are vital in your website, and in addition gives worthwhile details about these recordsdata. For instance, when the web page was final up to date and any alternate language variations of the web page.”
Rank Math XML Sitemap Bug
Rank Math additionally generates a number of XML sitemaps. In truth, it generates presumably an infinite variety of XML sitemaps.
For instance, a website with a single sitemap for “posts” will generate the next duplicate sitemaps:
/post-sitemap.xml /post-sitemap1.xml
Nevertheless it gained’t generate the zero numbered variant, /post-sitemap0.xml
The identical is true for duplicate sitemaps generated for pages:
/page-sitemap.xml /page-sitemap1.xml
And once more, identical to for the “posts” sitemaps, Rank Math does not generate the zero-numbered sitemap variant: /page-sitemap0.xml
Rank Math Generates Infinite Variety of Sitemaps?
Whereas Rank Math doesn’t generate the zero-numbered sitemap variant, Rank Math does generate what seems to be a close to infinite quantity of numbered XML sitemaps.
Ideally, Rank Math ought to generate a 404 response code for sitemaps that don’t exist.
However what seems to be taking place is that as an alternative of producing a 404 response message Rank Math is producing a 200 response code (which means it’s a request for a sound net web page) after which producing an empty XML sitemap.
The next is a URL that I examined to see what Rank Math generated:
https://rankmath.com/post-sitemap9.xml
That is what Rank Math reveals:
Non-existent Website Map Generated by Rank Math

What number of sitemaps will Rank Math generate?
Apparently, Rank Math might generate quite a lot of URLs, presumably an infinite quantity of XML sitemap pages.
I used to be capable of generate a clean sitemap with this URL:
https://rankmath.com/post-sitemap9999999999999999999999999999999999999999999.xml
What’s of curiosity in regards to the above sitemap is that the server generates a 200 header response code to a browser when serving that XML website map.
The 200 response code signifies that there isn’t any error.
I verified whether or not Rank Math generated a 200 response code through the HTTPStatus web site.
This reveals that Rank Math generates a 200 response code for pages that don’t exist:

Rank Math Sitemap Redirect Habits
Different search engine optimisation plugins have a bug that creates a reproduction sitemap when the quantity zero is added to the top of a sitemap URL.
Rank Math nevertheless doesn’t create a reproduction sitemap with the quantity zero.
Once you make a request for the non-existent zero-numbered sitemap, the request triggers a redirect to the canonical sitemap.
A request for this non-existent sitemap:
/page-sitemap0.xml
Redirects to the canonical sitemap:
/page-sitemap.xml
However that’s arguably not an accurate approach to deal with a sitemap that doesn’t exist.
The proper server response ought to be to point out a 404 Web page Not Discovered Error Response message, as a result of that’s what occurred, the web page was not discovered.
The Yoast search engine optimisation plugin responds within the right method by serving a 404 response code for XML sitemaps that don’t exist (apart from the zero and 1-numbered variants).
I requested Rank Math about it they usually defined that it’s not a problem in any respect.
Rank Math:
“That is just like how WP core handles on-site search: you’ll obtain HTTP 200 response for any arbitrary search question.
Not like some sitemap plugins, Rank Math doesn’t generate bodily sitemap recordsdata within the server’s root listing.
Since these non-existent sitemap URLs should not current wherever on the positioning, Google and different search engines like google and yahoo won’t ever crawl them, so this shouldn’t trigger any problem from an search engine optimisation standpoint.”
Rank Math Duplicate Website Map Bug
It’s fascinating that Rank Math, like just a few different search engine optimisation Plugins, has a reproduction website map bug.
With regards to optimizing a web site for search engines like google and yahoo, the objective is to be as excellent as attainable. Something that makes a web site lower than excellent will be thought of a flaw when perfection is the objective.
Lower than excellent optimization can result in unexpected penalties.
Yoast is conscious of the issue and is claimed to be engaged on a repair. One would hope that the duplicate website map problem with Rank Math may also be fastened in some unspecified time in the future.
Quotation:
Learn Google’s Internet Web page About Sitemaps
!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js');
if( typeof sopp !== "undefined" && sopp === 'yes' ){ fbq('dataProcessingOptions', ['LDU'], 1, 1000); }else{ fbq('dataProcessingOptions', []); }
fbq('init', '1321385257908563');
fbq('track', 'PageView');
fbq('trackSingle', '1321385257908563', 'ViewContent', { content_name: 'rank-math-duplicate-site-map', content_category: 'news seo wp ' });
[ad_2]
