ch.at

Universal Basic Intelligence

pronounced "ch-dot-at"

sitemap.xml

sitemap.xml Explanation

A sitemap.xml file is an XML document that provides information about the pages, videos, and other files on a website, and the relationships between them. Search engines like Google, Bing, and Yahoo use this file to more intelligently crawl your website.

Basic Structure

A basic sitemap.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2023-01-01</lastmod>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.example.com/about</loc>
    <lastmod>2023-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Key Elements

  • <urlset> - Encapsulates the file and references the sitemap protocol standard
  • <url> - Parent tag for each URL entry
  • <loc> - URL of the page (required)
  • 🟠 claude-3.7-sonnet