sitemap.xml

Mikes Notes

Once the new Ajabbi websites are ready for the public, they will all need a sitemap file at the web root. As explained in Wikipedia, several formats work, including .xml and .txt.

"Sitemaps is a protocol in XML format meant for a webmaster to inform search engines about URLs on a website that are available for web crawling. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs of the site. This allows search engines to crawl the site more efficiently and to find URLs that may be isolated from the rest of the site's content. The Sitemaps protocol is a URL inclusion protocol and complements robots.txt, a URL exclusion protocol." - Wikipedia

"Validating your Sitemap

The following XML schemas define the elements and attributes that can appear in your Sitemap file. You can download this schema from the links below:

There are a number of tools available to help you validate the structure of your Sitemap based on this schema. You can find a list of XML-related tools at each of the following locations:

" - Sitemaps.org

Resources

Example

A shortened extract from https://www.thegooddocsproject.dev/sitemap.xml

<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="https://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="https://www.w3.org/1999/xhtml" xmlns:mobile="https://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1" xmlns:video="https://www.google.com/schemas/sitemap-video/1.1">
<url>
  <loc>https://www.thegooddocsproject.dev/</loc>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>https://www.thegooddocsproject.dev/about/</loc>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
    <loc>https://www.thegooddocsproject.dev/code-of-conduct/</loc>
<changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>https://www.thegooddocsproject.dev/blog/keystone-project/</loc>
  <changefreq>yearly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>https://www.thegooddocsproject.dev/blog/release-brooklyn/</loc>
  <changefreq>yearly</changefreq>
  <priority>0.7</priority>
</url>
</urlset>


No comments:

Post a Comment