sitemap.xml
A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website. It includes a list of URLs along with additional information about each URL. Here’s a simple overview of its components:
- URL Set: The main container for all URLs, usually defined with the
<urlset> tag.
- URL Entry: Each URL is contained within
<url> tags.
- Location: The actual URL is specified using the
<loc> tag.
- Last Modified: The date when the URL was last modified is indicated with the
<lastmod> tag.
- Change Frequency: This optional tag
<changefreq> suggests how often the page is likely to change (e.g., daily, weekly).
- Priority: This optional tag
<priority> indicates the importance of the URL relative to other pages on the site.
Here is a basic example of what a `sitemap.xml` file might look like:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap-image/1.1">
<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-09-25</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
<