Security tests

Disable WordPress sitemaps

Disable the built-in WordPress sitemaps when an SEO plugin already provides sitemaps.

Since WordPress 5.5, core ships built-in XML sitemaps. That can overlap with SEO plugins that already generate sitemaps, or add work you do not need.

Disable WP Sitemaps

When to disable

  • An SEO plugin already manages sitemaps (Yoast, Rank Math, All in One SEO, and similar).
  • You want one sitemap source only.
  • You prefer an external sitemap workflow.

Disable with Security Ninja Pro

  1. Go to Security Ninja → Fixes.
  2. Enable the option to disable WP sitemaps.
  3. Confirm https://yoursite.com/wp-sitemap.xml no longer serves the core sitemap.

Manual method

Add this to a child theme functions.php or a small custom plugin:

add_filter( 'wp_sitemaps_enabled', '__return_false' );

Related: Fixes overview.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image