// wordpress & cpanel how-tos
How to submit your WordPress sitemap to Google (and Bing)
An XML sitemap is the best way to tell search engines about your pages. You submit it once, and it keeps telling Google about every new post automatically. Here's how to do it in WordPress, and what to leave out.
Why submit an XML sitemap
Beginners often confuse two kinds of sitemap. An HTML sitemap is a normal page that helps visitors understand your site's structure. An XML sitemap is a list of your posts and pages in a format made for search engine crawlers.
If your blog is new, nobody links to it yet, and Google finds pages mainly by following links. That's why you should tell Google your site exists. Even with links, crawlers won't easily find every post. A sitemap gives them an organized list, so they spend less time searching and you improve your chances of getting every good page indexed.
Find or create your sitemap
Since version 5.5, WordPress creates a basic sitemap on its own at yourdomain.com/wp-sitemap.xml. You don't need a plugin for it.
Most SEO plugins replace it with a better one. Yoast SEO creates yourdomain.com/sitemap_index.xml, and you'll find its setting under Yoast SEO → Settings → Site features → XML sitemaps. Rank Math uses the same address and keeps its options under Rank Math → Sitemap Settings. Open your sitemap in the browser to make sure it loads before you submit it. If Google later says it looks like an HTML page, follow my guide to fixing "your sitemap appears to be an HTML page".
What your sitemap should include
Be careful here: a sitemap helps, but a bad one can list duplicate or useless pages. The best sitemap includes your posts, your pages and, if they have real content, your categories. Your homepage is included as a page.
Leave out tag archives, date archives, author archives on a one-author blog, and attachment pages. They mostly repeat posts that are already listed. In Yoast or Rank Math, set those content types to "no" in the search appearance or sitemap settings, and they disappear from the sitemap too. Add images if you have many useful ones; both plugins include them automatically.
Submit it in Google Search Console
- Sign in to Google Search Console (it was called Google Webmaster Tools when I first wrote this) and add your site if it isn't there yet. The Domain property type covers http, https, www and non-www at once, and you verify it with a DNS record at your registrar or host.
- Select your site, then open Sitemaps in the left menu.
- Under Add a new sitemap, type the end of your sitemap address, such as
sitemap_index.xmlorwp-sitemap.xml, and click Submit.
Google fetches it within a few days. Nobody can tell you exactly when your pages will be crawled, but you'll see the status, the number of discovered pages and any errors in the same report. Google only indexes pages it considers worth indexing, so a sitemap is no guarantee: unique, useful content is what gets indexed.
Submit it to Bing (and Yahoo, DuckDuckGo)
Submit the same sitemap to Bing Webmaster Tools. You can import your site directly from Google Search Console there, which saves the verification step. Bing's index also feeds Yahoo and DuckDuckGo results, so one submission covers all three. Yandex has its own webmaster tool if your audience is there.
After you submit
Don't resubmit your sitemap again and again; it doesn't speed anything up. The plugins update it automatically when you publish. Resubmit only after a big change, such as a new domain or a site restructure.
Check Search Console regularly for sitemap and indexing errors. You'll also see some "Not found (404)" errors from time to time. That's a normal part of the web, and even Google has them. Fix the ones that matter, especially pages that other sites link to, and your site will stay healthy.
FAQ
Where is my WordPress sitemap?
WordPress creates one at yourdomain.com/wp-sitemap.xml. If you use Yoast SEO or Rank Math, the plugin replaces it with yourdomain.com/sitemap_index.xml.
How do I submit a sitemap to Google?
In Google Search Console, select your site, open Sitemaps, type your sitemap address (for example sitemap_index.xml) under Add a new sitemap, and click Submit.
Should tags and archives be in my sitemap?
Usually no. Tag, date and attachment pages mostly repeat posts that are already listed. Include posts, pages and categories with real content.