Sitemaps
Helpful for webcrawlers to properly index a website.
One way to get the sitemap easier to find is putting the location in the robots.txt file.
Tips
- Google ignores
<priority> - Google checks
<lastmod>for accuracy
… and accurate sitemap leads to better SEO.
Example from www.sitemaps.org
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2005-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Source sitemaps.org/protocol.
This site - pushpopswap.com
Of course, this site’s sitemap.xml file is built on compile time, see the script here.