Complete Guide to XML Sitemaps for Technical SEO
How to generate, structure, and submit compliant XML sitemaps to optimize crawl efficiency and indexation.
1. Anatomy of a Standard XML Sitemap
The XML sitemap protocol follows the official schema defined by sitemaps.org, recognized by Google, Bing, Yahoo, and Yandex. Each URL entry contains the canonical address (<loc>) and optional metadata hints including date modified (<lastmod>), change frequency (<changefreq>), and relative importance (<priority>).
2. Sitemap Best Practices
- Only include canonical, indexable URLs: Never include 301 redirects, 404 error pages, or URLs with
noindextags. - Use absolute URLs: Always write full URLs including protocol (e.g.
https://example.com/page), never relative paths. - Escape special characters: Characters like ampersands (&) must be encoded as
&in XML. - Reference in robots.txt: Add
Sitemap: https://yourdomain.com/sitemap.xmlat the bottom of your robots.txt file.
3. Browser Privacy
🔒 100% Client-Side Generation
Your URLs and sitemap files are generated directly in your browser. No URLs or website architectures are ever uploaded or stored on any server.