sitemap.xml
A `sitemap.xml` file is an essential tool for search engines, as it helps them better understand your website's structure. Here are the key components typically found in a `sitemap.xml`:
- URL Set: The root element, usually defined as
<urlset>.
- URL Entry: Each URL entry is wrapped in
<url> tags.
- Location: The URL of the page is specified using the
<loc> tag.
- Last Modified: The last modification date of the URL can be included with the
<lastmod> tag.
- Change Frequency: Indicate how often the page is likely to change using the
<changefreq> tag.
- Priority: Assign a priority to the URL using the
<priority> tag, on a scale from 0.0 to 1.0.
Here’s a simple example of a `sitemap.xml` file:
<?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-09-15</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
Make sure to update your `