Quick answer: If your WordPress site isn’t generating a sitemap, the cause is almost always one of three things: your SEO plugin’s sitemap feature is disabled, a conflicting plugin is blocking it, or your permalink structure isn’t set correctly. Check these in order — most cases are fixed in under five minutes.
If you’ve been searching this, you’ve probably already tried visiting yoursite.com/sitemap_index.xml and gotten a blank page or a 404. Here’s how to actually fix it, not just guess.
Check This First: Is Your SEO Plugin’s Sitemap Enabled?
This is the most common cause by far. If you’re using Yoast SEO, go to Yoast SEO → Settings → General → Features and confirm XML sitemaps is toggled on. If you’re using Rank Math, check Rank Math → Sitemap Settings the same way.
It sounds obvious, but a plugin update or a settings reset during a theme change often silently switches this off without any warning.
Second Check: Permalinks
A broken permalink structure is the second most common cause. Go to Settings → Permalinks in your WordPress dashboard, and even if it already looks correct, click Save Changes anyway — this forces WordPress to regenerate its rewrite rules, which often fixes a sitemap that mysteriously stopped working after a plugin update.
Third Check: Plugin Conflicts
If both of the above look fine, a conflicting plugin is the next suspect. Caching plugins, security plugins, or a second SEO plugin running alongside your main one are the usual culprits.
How to isolate it:
- Deactivate all plugins except your SEO plugin
- Visit your sitemap URL — if it works now, one of the deactivated plugins was the problem
- Reactivate plugins one at a time, checking the sitemap after each, until you find the one causing the conflict
If You’re Running Two SEO Plugins at Once
This is worth calling out specifically because it’s easy to do by accident — installing Rank Math without fully removing Yoast (or vice versa) leaves both plugins trying to generate a sitemap, and they can cancel each other out. Only one SEO plugin should be active at a time.
Still Not Working? Check Your .htaccess File
If none of the above resolves it, your .htaccess file may have a rule blocking XML file access. This requires editing server files directly — if you’re not comfortable doing this yourself, this is the point where it’s worth having a developer take a quick look rather than risking a broken site.
For the sitemap’s counterpart file, make sure your robots.txt correctly references the sitemap URL too — a mismatch here can cause search engines to miss your sitemap even after it’s fixed.
Frequently Asked Questions
How do I know if my sitemap is actually working?
Visit yoursite.com/sitemap_index.xml directly in a browser. If it shows a structured XML list of your pages, it’s working. A 404 or blank page means it’s not.
Do I need to resubmit my sitemap to Google after fixing it?
Yes — go to Google Search Console → Sitemaps, remove the old submission if it shows an error, and resubmit the URL.
Can a caching plugin really block a sitemap?
Yes — some caching plugins cache a broken version of the sitemap page before it can regenerate, so clearing your cache after a fix is worth doing.
Will a missing sitemap actually hurt my rankings?
It won’t directly hurt rankings, but it can slow down how quickly Google discovers new pages, which delays indexing — especially important for a site publishing new content regularly.
Is this different from a broken robots.txt?
Yes — robots.txt controls crawler access, while a sitemap is a discovery aid listing your pages. Both need to work together, but they’re separate files with separate causes.

