Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Easily Disable the Default WordPress Sitemap

When WordPress first added a default XML sitemap, our team thought it was a helpful update. But we quickly noticed it caused major SEO headaches for website owners using other plugins.

Having two different sitemaps sends confusing signals to search engines. This duplicate setup can actually hurt your search rankings and cause unnecessary stress.

At WPBeginner, we regularly audit site structures and have dealt with this exact sitemap overlap firsthand. In this guide, we will show you how to safely disable the default WordPress sitemap.

The good news is that popular tools like All in One SEO often fix this for you automatically. Let’s look at why keeping just one optimized sitemap matters for your site.

How to Easily Disable the Default WordPress Sitemap

Why Should You Disable WordPress Sitemap

An XML sitemap is a file that lists all your website content in an XML format, which makes it easy for search engines to discover and index your content.

Sitemaps help search engines find and index your content faster, which can boost your traffic and improve your search rankings.

However, numerous WordPress SEO plugins like All in One SEO, Yoast SEO, and XML Sitemaps already implement sitemaps on your website, which results in WordPress pages having two sets of sitemaps.

Having duplicate sitemaps can send confusing signals to search engines. It wastes your site’s crawl budget, meaning search bots like Google waste time crawling the exact same links twice instead of discovering your brand-new posts. This delay in indexing is bad for SEO.

If you are not using a search engine optimization plugin for your sitemap, then you are missing out on advanced features. For example, premium WordPress SEO plugins offer specialized features like a Video Sitemap or News Sitemap to help you outrank your competitors.

With that in mind, let’s look at how to easily disable the default WordPress sitemap:

Method 1: Disable WordPress Sitemap Using WordPress SEO Plugin

If you are using any of the popular WordPress SEO plugins, then it will automatically disable the default WordPress sitemap feature and replace it with a more powerful solution.

For the sake of this tutorial, we will be demonstrating the AIOSEO plugin because that’s the plugin we use on WPBeginner.

All in One SEO is the best WordPress SEO plugin that allows you to easily optimize your WordPress website for search engines and social media platforms. Over 3 million websites use AIOSEO, including our own.

When you activate All in One SEO, its sitemap feature is enabled by default. WordPress actually designed its core sitemap to natively step aside whenever a dedicated SEO plugin is detected. This safely disables the core WordPress sitemap to prevent conflicts and creates AIOSEO’s own, more powerful sitemap for your site.

The first thing you need to do is install and activate the free AIOSEO plugin. For more details, please see our guide on how to install a WordPress plugin.

Once activated, you will need to configure the AIOSEO plugin. If you need help, then you can follow our step-by-step guide on how to set up All in One SEO in WordPress correctly.

After that, head over to the All in One SEO » Sitemaps page from the WordPress admin dashboard to review your sitemap settings.

Next, click on the ‘General Sitemap’ tab. By ensuring that the ‘Enable Sitemap’ toggle is active, you are telling AIOSEO to handle your sitemaps. This action automatically disables the default WordPress sitemap for you.

AIOSEO sitemap settings

Aside from the General Sitemap, AIOSEO also generates an RSS sitemap automatically. If you upgrade to the premium version (AIOSEO Pro), we highly recommend enabling the video sitemap and news sitemap to maximize your SEO rankings.

You can typically view your new AIOSEO sitemap by going to yourwebsite.com/sitemap.xml. This is the URL you’ll want to submit to Google Search Console.

Note: If you are using the Pro Video or News sitemaps, AIOSEO automatically creates dedicated URLs for those as well, such as sitemap-video.xml.

Method 2: Disable WordPress Sitemap Using Code Snippet

You can also easily deactivate the default WordPress XML sitemap using code, too. You can add the code snippet in your theme’s functions.php file.

However, the biggest problem in adding code to your functions.php file is that even a tiny mistake can break your WordPress site.

That is why we recommend using WPCode to add custom code to WordPress. This free plugin makes it easy to add code snippets in WordPress without having to edit your theme’s functions.php file.

First, you need to install and activate the WPCode Free Plugin. For further instructions, check out our guide on how to install a WordPress plugin.

Next, go to Code Snippets » + Add Snippet in the left-hand menu of your WordPress dashboard. WPCode will then take you to the ‘Add Snippet’ page.

Now you need to search for WPCode’s built-in snippet for disabling WordPress sitemaps. Once you find it, simply hover your mouse over the entry and then click the ‘Use snippet’ button.

WPCode Has a Built-In Snippet for Disabling WordPress Sitemaps

You will be directed to the ‘Edit Snippet’ page, where you can see that the code and other details of the snippet have already been completed for you.

All you need to do is toggle the switch from ‘Inactive’ to ‘Active’ at the top right corner, and then click the ‘Save Snippet’ button.

Activating the Disable WordPress Sitemaps Snippet

Once you have saved and activated the code snippet, it will be active, and the default WordPress sitemap will be disabled.

Frequently Asked Questions About Disabling WordPress Sitemaps

Here are some of the most common questions we get asked about managing the default WordPress sitemap and how it affects your site’s SEO.

1. What is the purpose of the default WordPress XML sitemap?

WordPress added a basic XML sitemap feature in version 5.5 to help search engines find and index your content. It’s a core feature designed to ensure even brand-new sites have a sitemap without needing a plugin.

2. Is it bad to have two XML sitemaps on one website?

Yes, having two or more sitemaps can be a problem. It can confuse search engine crawlers, which may lead to indexing delays or other unexpected SEO issues.

3. Do I still need the default sitemap if I use an SEO plugin like All in One SEO?

No, you do not. SEO plugins like All in One SEO automatically disable the default sitemap. They replace it with their own advanced sitemap that offers far more control and features.

4. Will disabling the default sitemap hurt my SEO?

Disabling the default sitemap will not hurt your SEO as long as you have another one active from an SEO plugin. The goal is to have a single, high-quality sitemap, which actually improves your site’s SEO.

Additional Resources for Managing Your Sitemap and SEO

If you found this guide helpful, you might want to check out these other articles on sitemaps and WordPress SEO. They will help you further improve your website’s search engine rankings.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

Comments

  1. Congratulations, you have the opportunity to be the first commenter on this article.
    Have a question or suggestion? Please leave a comment to start the discussion.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.