Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

How do you fix a 404 error on the Yoast SEO sitemap?

Illustration without a description Illustration without a description

A Yoast sitemap 404 often comes from stale rewrite rules. Open WordPress Permalink Settings and click Save Changes without altering the structure. Then clear the WordPress, server, proxy, and CDN caches and test /sitemap_index.xml again in a private browser window.

 

Confirm that the XML sitemap feature is enabled and that no physical file or directory occupies the same path. Another SEO or sitemap plugin can register competing rewrite rules. Keep one sitemap generator active and remove obsolete static XML files only after backing them up and confirming that they are no longer used.

 

On Nginx or a custom Apache setup, the server must pass sitemap requests through WordPress. Compare the configuration with Yoast’s current server guidance or ask the host to inspect the rewrite. Security rules should allow public GET requests to XML and XSL files. Once the sitemap returns a successful response, resubmit its index URL in Search Console.