sitemap.xml is an XML file that provides a structured list of a website's pages, helping search engines index the site more effectively. It typically includes information about:
- URL - The address of the webpage.
- Last Modified - The date the page was last updated.
- Change Frequency - How often the page is expected to change (e.g., daily, weekly).
- Priority - The importance of the page relative to other pages on the site.
A standard
sitemap.xml might look like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap-image">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2023-10-01</lastmod>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.example.com/about</loc>
<lastmod>2023-10-01</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
Including a
sitemap.xml on your website can improve your site's SEO by making it easier for search engines to find and understand your content.