An XML sitemap is a file that tells search engines which pages you want indexed on your site, along with extra data about each URL such as the last modified date. It is one of the simplest and most effective tools in
What is an XML sitemap and why does it matter?
A sitemap is not a page for humans to visit, it is an XML file aimed at search bots. When Googlebot visits your site, the sitemap acts as a direct guide that leads it to all your important pages without relying solely on following internal links. This is especially useful for new sites with few backlinks, large stores, and deep pages that are hard to reach through normal browsing.
A sitemap does not guarantee indexing, but it raises the likelihood and speed of it, and it helps Google understand your priorities and site structure.
How to create a sitemap
There are three common approaches depending on your setup:
- CMS plugins: WordPress with Yoast or Rank Math generates a dynamic sitemap that updates automatically. Platforms like Shopify, Salla and Zid generate one for you.
- Online generators: Tools such as Screaming Frog crawl your site and export a ready sitemap, suitable for static sites.
- Custom code: For bespoke sites, the file is built programmatically to reflect the database in real time.
The golden rule: a sitemap should contain only indexable pages (Status 200), and be free of noindex pages, redirected URLs, or anything blocked in your
How to submit your sitemap to Google Search Console
Once your sitemap is live at a stable URL (usually /sitemap.xml), follow these steps:
- Open Google Search Console and select the correct property.
- From the sidebar choose Sitemaps.
- Enter the sitemap path and click Submit.
- Monitor the "Success" status and the discovered versus indexed URL counts.
It is also best to add a line pointing to the sitemap inside your robots.txt file in the form Sitemap: https://example.com/sitemap.xml, so other engines like Bing can discover it.
Sitemap index files and specialized sitemaps
When your site grows beyond the 50,000 URL limit, you split your URLs across several sitemaps and group them under one sitemap index file that references them all. This is the standard approach for large stores in Riyadh and Jeddah that carry thousands of products.
Alongside the page sitemap, specialized sitemaps improve your visibility:
| Sitemap type | Benefit |
|---|---|
| Image sitemap | Improves visibility of your images in image search |
| Video sitemap | Surfaces your clips in video results |
| News sitemap | For eligible news sites in Google News |
| hreflang sitemap | Links the Arabic and English versions of your bilingual site |
Common sitemap errors and how to avoid them
We watch for these errors in every technical audit, as they weaken the trust between your site and Google:
- Including noindex or deleted pages: sends mixed signals and wastes crawl budget. Review how your sitemap relates to
crawling and indexing. - URLs returning 404 or 301: every sitemap URL should return only a 200 status.
- Non-canonical URLs: list the canonical version of each page, not duplicates or URLs with parameters.
- A stale sitemap that never updates: leaves Google visiting URLs that no longer exist.
- Mixing HTTP and HTTPS protocols: stick to a single, consistent primary domain.
Monitoring performance after submission
Submission is not the end of the job. Monitor the Coverage report in Search Console regularly, and compare submitted URLs against indexed ones. Any large gap reveals a technical issue worth investigating, whether in content quality or crawl configuration.
A healthy sitemap is just the beginning. If you want a full picture of your site's technical health, get a comprehensive