Introduction
An XML Sitemap is a file that helps search engines discover and index the pages on your website.
Sitemaps help search engines understand:
- Which pages exist
- When pages were updated
- How your website is structured
Most modern WordPress websites automatically generate XML Sitemaps using SEO plugins.
This guide explains how to create and verify an XML Sitemap in WordPress.
What Is an XML Sitemap?
An XML Sitemap is a special file designed for search engines.
Visitors generally do not use XML Sitemaps directly.
Instead, search engines such as Google use them to discover content on your website.
Option 1 – Using Yoast SEO
If you are using Yoast SEO:
From the WordPress Dashboard
Click: Yoast SEO
Then click: Settings
Locate: XML Sitemaps
Ensure XML Sitemaps are enabled.
Your sitemap will normally be available at:
https://yourdomain.co.za/sitemap_index.xml
Option 2 – Using Rank Math SEO
If you are using Rank Math:
From the WordPress Dashboard
Click: Rank Math SEO
Then click: Dashboard
Locate: Sitemap
Ensure sitemap functionality is enabled.
Your sitemap will normally be available at:
https://yourdomain.co.za/sitemap_index.xml
Option 3 – Using WordPress Built-In Sitemaps
Recent versions of WordPress include basic sitemap functionality.
Your sitemap may be available at:
https://yourdomain.co.za/wp-sitemap.xml
The exact location may vary depending on your configuration and installed plugins.
Step 1 – Verify Your Sitemap
Open your browser.
Visit:
https://yourdomain.co.za/sitemap.xml
If that does not load, try:
https://yourdomain.co.za/sitemap_index.xml
or
https://yourdomain.co.za/wp-sitemap.xml
You should see a sitemap page listing website content.
Step 2 – Submit Your Sitemap to Google
Open Google Search Console.
Select your website.
Click: Sitemaps
Locate: Add a New Sitemap
Enter:
sitemap.xml
or
sitemap_index.xml
depending on the sitemap generated by your website.
Click: Submit
Why Sitemaps Are Important
Sitemaps help search engines:
- Discover new pages
- Discover updated pages
- Crawl websites more efficiently
- Understand website structure
This can improve how quickly new content is discovered.
Common Problems
Sitemap Not Found
Verify that:
- Your SEO plugin is active.
- Sitemap functionality is enabled.
- Website caching is not causing issues.
Google Cannot Read the Sitemap
Verify that:
- The sitemap URL is correct.
- The website is publicly accessible.
- Search engine indexing is enabled.
New Pages Are Missing
Some sitemap updates may take time.
Wait a short period and check again.
Most SEO plugins automatically update the sitemap when content changes.
Best Practices
When using XML Sitemaps:
- Submit your sitemap to Google Search Console.
- Keep WordPress updated.
- Keep SEO plugins updated.
- Verify new content is being included.
- Review Search Console regularly.
Conclusion
XML Sitemaps help search engines discover and index your website content more effectively.
Most WordPress websites can generate sitemaps automatically, making them an easy but important part of any SEO strategy.


