Checks for an XML sitemap using protocol 0.9
Google, Yahoo and Microsoft announced support for a common Sitemap protocol in November 2006. A sitemap helps describe the public URLs a site wants crawled. It supplements ordinary navigation and does not guarantee that every submitted page will be indexed.
Generate from published pages
Use the 0.9 namespace on urlset and an absolute loc value inside each url entry. List the preferred working address for each page, leaving out session IDs, search permutations and duplicate print versions. Keep private records out entirely. A sitemap and robots.txt are both public documents, and neither provides access control for confidential pages.
Report facts the application knows
Set lastmod from the page’s actual modification date rather than the time the sitemap script ran. Omit it if there is no reliable source. Optional priority values compare pages within the same site; assigning every page the maximum is not a way to outrank other websites. Keep the file UTF-8 encoded and escape characters such as ampersands in its XML values.
Check the generated file independently
Validate the XML, fetch a sample of listed pages without an administrator login and inspect their HTTP status. Confirm that redirects and removed pages have been excluded. For a large catalogue, divide the output into files within the protocol’s limits and use a sitemap index. Monitor the search engines’ submission reports and repair persistent fetch errors at their source.
Place the sitemap where its URL scope covers the intended pages and submit the actual public address. Keep useful HTML links to those pages for visitors and crawlers alike.
References
Google: joint support for the Sitemap protocol, November 2006