J!Extensions Store™
Faq Why i receive the error 'Your Sitemap or Sitemap index file declares the namespace incorrectly'?

Why i receive the error 'Your Sitemap or Sitemap index file declares the namespace incorrectly'?

Created on:Monday, 06 April 2015 22:00

The problem looks like you have Admin Tools plugin installed with the option to force the website running on https, so it replaces every links encountered in the Joomla! output with the https protocol version.

Indeed the correct link for the namespace of an XML sitemap document is:
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

and if it's replaced with the https version it won't be valid:
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"

The problem derives from the setting named 'Convert all links to HTTPS when site is accessed over SSL' of Admin Tools. Ensure that it's set to 'No' to fix the problem.

admin tools

Take care that the same issue could be caused even by another extension named NoNumber ReReplacer if you are using it with a rule to replace all links with the https version.