Check your WordPress sitemap
A sitemap is a file that lists the pages on your site, so search engines like Google and Bing find new and changed pages sooner. WordPress makes one for you, and SEO plugins such as Yoast SEO replace it with their own. This article shows you how to check yours and fix what's wrong.
Where your sitemap lives
| Made by | Address |
|---|---|
| WordPress | https://example.ca/wp-sitemap.xml |
| Yoast SEO | https://example.ca/sitemap_index.xml |
| Rank Math | https://example.ca/sitemap_index.xml |
| All in One SEO | https://example.ca/sitemap.xml |
Most sitemaps are an index: a short file that points to other files, one for posts, one for pages, and so on.
Check it in your account
- Open Account → Hosting → your site → Websites, pick your WordPress site, and open the Search engines tab.
- Read the Sitemap card. It shows the address, which plugin makes the sitemap, how many pages it lists and whether robots.txt points to it.
- Read What to fix. The most serious problems are at the top. Open Show them under a problem to see the pages it affects.
- After you fix something, select Check again.
The check reads your sitemap and opens a sample of up to 200 of its pages, a few at a time, so your visitors aren't slowed down. It can take up to half a minute. The results stay for an hour, or until you check again.
If your site is very busy when we check, we stop early and say so. Check again in a few minutes.
What the problems mean
| Problem | What to do |
|---|---|
| No sitemap found | Turn on your SEO plugin's sitemap, or let WordPress make one by removing the plugin that turned it off |
| Search engines are asked not to list this site | Switch Search engines back on in Site controls when the site is ready. WordPress hides its own sitemap while it's off |
| The sitemap is broken | The file isn't valid XML, often because a plugin or theme printed an error into it. Turn off plugins one at a time to find it, then clear LiteSpeed Cache |
| A sitemap file is missing or didn't load | The index lists a file that doesn't answer. Save your SEO plugin's settings again to rebuild the sitemap |
| Pages return not found | Remove deleted pages from the sitemap, or redirect them to a page that exists |
| Pages redirect | The sitemap lists old addresses. Update the links, or check that your site address uses https:// |
| Pages ask not to be listed | A page says noindex but the sitemap offers it. Keep one or the other |
| robots.txt blocks pages | Search engines won't read those pages. Change robots.txt or remove them from the sitemap |
| More than one SEO plugin is on | Keep one SEO plugin, so you don't end up with two sitemaps that disagree |
Choose what the sitemap lists
When WordPress makes your sitemap, the Sitemap settings card controls it:
- WordPress sitemap turns the sitemap on or off. WordPress also hides it while Search engines is off in Site controls.
- The sitemap lists shows posts, pages, categories, tags, authors and any other kinds of page your site has. Clear a box and select Save to leave that kind out, for example author pages on a one-person site.
When an SEO plugin such as Yoast SEO makes the sitemap, these settings live in the plugin, so the card isn't shown. Use Open Yoast SEO settings on the Sitemap card instead.
Tell search engines about it
Search engines find your sitemap on their own when robots.txt has a Sitemap: line. WordPress and most SEO plugins add one for you:
Sitemap: https://example.ca/wp-sitemap.xml
If yours doesn't, select Add the Sitemap line on the Tell search engines card.
Notify now asks Bing and other search engines that use IndexNow to read the sitemap again. We do this for you whenever you change the sitemap settings.
To see how Google reads your site, verify it in Google Search Console:
- In Search Console, add your domain as a Domain property and copy the TXT record it shows. It starts with
google-site-verification=. - Paste it into Google Search Console on the Tell search engines card and select Add the record.
- Go back to Search Console and select Verify. DNS changes can take up to an hour to show.
Then add the sitemap address in Search Console under Sitemaps. Bing Webmaster Tools works the same way.
If something goes wrong
- The tab shows an old result. Select Check again. Results stay for an hour otherwise.
- The sitemap opens in your browser but the tab says it's missing. Clear LiteSpeed Cache, then check again.
- You changed your site address. Pages in the sitemap may still use the old one. See Change a WordPress site's URL.
Still stuck? Ask us and we'll walk you through it.