Frequently Asked Questions

How Do I Fix the Magento 2 Sitemap.xml 404 Error?

Magento 2 Sitemap.xml 404 error can be fixed quickly; all you need to do is-

  • Ensure the sitemap file exists in the correct directory.
  • Verify file permissions.
  • Regenerate the sitemap from Marketing > SEO & Search > Site Map.
  • Check and update base URLs in Stores > Configuration > General > Web.
  • Clear cache from System > Cache Management.
  • Confirm URL rewrite rules and server settings allow .xml file access.

You can use our Magento 2 XML and HTML Sitemap Extension to generate the XML sitemap for your Magento 2 store.


Read this How to Generate HTML and XML Sitemaps in Magento 2 to setup this extension.


Here are the few more resource to help you get most out of this Magento 2 XML and HTML Sitemap Extension.
Did you find what you were looking for?
Write Your Own Question