Sitemap
XML file listing all pages you want search engines to index.
What is Sitemap?
An XML sitemap is a file that lists the URLs on your website that you want search engines to crawl and index. It helps search engines discover pages, especially those that might not be found through normal crawling of internal links.
Sitemaps can include metadata like last modification date, change frequency, and priority. While search engines don't guarantee they'll follow these hints, sitemaps improve crawl efficiency.
Why Sitemap matters
Sitemaps help search engines discover and index your content faster. They're especially important for large sites, new sites with few external links, sites with complex navigation, and programmatic SEO with many pages.
How to implement
Generate XML sitemap (most CMSs do this automatically)
Include only indexable, canonical URLs
Submit sitemap to Google Search Console
Reference sitemap in robots.txt
Keep sitemap updated with new content
Use sitemap index for large sites (50,000+ URLs)
Code example
<?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>2026-01-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Common mistakes to avoid
- Including noindex or redirected URLs
- Not updating sitemap with new content
- Submitting sitemap once and forgetting it
- Including URLs you don't want indexed
Examples
Location: yourdomain.com/sitemap.xml
Sitemap index for multiple sitemaps
Specialized sitemaps: sitemap-posts.xml, sitemap-products.xml
Frequently asked questions
Not required, but strongly recommended. Sitemaps help with discovery but don't guarantee indexing. They're especially valuable for large or new sites.
Maximum 50,000 URLs per sitemap file. For larger sites, use a sitemap index that references multiple sitemap files.