The error you get in Google tells you what is going on. Line 5 of your XML sitemap fetched over HTTPS reads:
<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
The xmlns
attribute is the namespace referenced in the error message.
Reading https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps, the correct namespace is http://www.sitemaps.org/schemas/sitemap/0.9
.
Note that the namespace looks like a URL but it is not. It is a URI and it must be included verbatim. This means that Its scheme MUST ALWAYS be http, never https. There is no such XML namespace as https://www.sitemaps.org/schemas/sitemap/0.9
.
If you are using “Convert all links to HTTPS when site is accessed over SSL” in Admin Tools, set this to No.
If this didn't help, check if you have any other plugin which may be doing this conversion.
If there is no other plugin, contact the sitemap plugin's author.
As to why Google shows the same error in both cases, I suspect it's because it tries to upgrade the connection to HTTPS anyway. I have not used their tools in a very long time, so I cannot tell you if they definitely do that. It would explain, though, why they complain about line 5 even when using plain HTTP for your sitemap URL (since your plain HTTP sitemap.xml has the correct namespace).
Regarding accessing the XML sitemaps from your browser, please see the previous reply.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!