An XML sitemap gives search engines a structured list of URLs you consider important. In WordPress it can be generated by core, an SEO plugin or another tool.
Only include indexable canonical URLs
A sitemap is not an archive of everything that exists. URLs with noindex, redirects, error pages or duplicate variants do not belong in it. That makes the signal clearer and monitoring easier.
A sitemap does not guarantee indexing
Search engines decide for themselves which pages are crawled and indexed. Good internal links, unique content, technical accessibility and clear canonical signals remain necessary.
Watch out for WordPress index bloat
Tag archives, author archives, filters and technical templates can unintentionally produce hundreds of thin URLs. Check which content really has search value and keep the sitemap focused on that.
After a migration
In a domain or URL migration, the new sitemap should only contain the new canonical URLs. Old URLs get relevant permanent redirects to their successors.
Use Search Console to check
Submit the sitemap and compare indexed pages with the URLs you deliberately offer. Differences can point to redirects, noindex, duplication or crawl problems.
Submitting a sitemap to Google
An XML sitemap helps Google find all important pages. Submit it in Google Search Console under Sitemaps, and also list it in your robots.txt with a line Sitemap: https://yourdomain.com/sitemap.xml. Search Console then shows how many pages were found and indexed.
What does not belong in it
- Pages with noindex, such as thank-you pages
- Redirects and pages that return a 404
- Tag and archive pages without their own content
- Variants of the same page with parameters in the URL
Discovered but not indexed?
If a page is in the sitemap but not in Google, the sitemap is rarely the cause. Often the page is too thin, resembles another page or has few internal links pointing to it. Improve the content, add internal links and then request indexing again.
Frequently asked questions
Does WordPress create a sitemap itself?
Yes. Since version 5.5, WordPress creates a simple sitemap at /wp-sitemap.xml. SEO plugins such as Yoast or Rank Math create a more extensive version and replace the WordPress one.
How often should I resubmit my sitemap?
Once is enough. Google then fetches it regularly by itself. Resubmitting only helps after major changes to the structure.
Should images be in the sitemap?
It is not required, but it can help if images matter for your visibility, for example for a photographer or web shop.
Rather not manage this yourself?
We combine managed hosting, WordPress maintenance and support in one service.