An XML sitemap is a roadmap that helps search engines discover all your important pages. While not required, sitemaps speed up indexing and ensure no pages get missed.
What is an XML Sitemap?
An XML sitemap is a file that lists all URLs on your website that you want search engines to index. It helps Google:
- Discover new and updated pages faster
- Understand your site structure
- Prioritize crawling based on importance
Do You Need a Sitemap?
Sitemaps are especially useful if your site:
- Has over 500 pages
- Is new with few external links
- Has pages not well linked internally
- Uses rich media content
- Publishes content frequently
How to Create a Sitemap
WordPress
Use Yoast SEO or Rank Math—they generate sitemaps automatically at /sitemap_index.xml
Shopify
Automatically generated at /sitemap.xml
Manual/Custom Sites
Use tools like Screaming Frog or XML-Sitemaps.com to generate, then upload to your server root.
Sitemap Best Practices
- Include only indexable pages (no noindexed URLs)
- Keep under 50,000 URLs per sitemap
- Use sitemap index for larger sites
- Include lastmod dates for important pages
- Update automatically when content changes
How to Submit Your Sitemap
- Go to Google Search Console
- Select your property
- Navigate to Sitemaps section
- Enter your sitemap URL
- Click Submit
Sitemap XML Format
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/page/</loc>
<lastmod>2025-01-15</lastmod>
<priority>0.8</priority>
</url>
</urlset>
Common Sitemap Mistakes
- Including noindexed or blocked pages
- Outdated lastmod dates
- Wrong URLs (HTTP vs HTTPS, www vs non-www)
- Not updating after content changes
Related: Website Indexing Guide | Technical SEO Complete Guide
0 comments