What Is It?
What Makes a Sitemap Valid?
The sitemap protocol is explicit and strict — Google silently ignores files that don't follow the rules. For a valid sitemap you need:
- An <?xml version="1.0" encoding="UTF-8"?> declaration
- The correct namespace: xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
- A single <loc> inside each <url> (absolute URL, max 2048 characters)
- lastmod in ISO 8601 (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+TZ)
- changefreq: always / hourly / daily / weekly / monthly / yearly / never
- priority: a decimal between 0.0 and 1.0 (default 0.5)
- A maximum of 50,000 URLs and 50MB; split the file and use a sitemap index if you exceed these