A sitemap.xml file is an important tool for search engines to understand the structure of your website. Here is a basic overview of what a sitemap.xml typically contains:
- URL Structure: Lists all the URLs of your website that you want search engines to index.
- Last Modified: Indicates the last time a page was changed, helping search engines prioritize crawling.
- Change Frequency: Suggests how often a page is likely to change (e.g., daily, weekly, monthly).
- Priority: Allows you to indicate the importance of a page relative to other pages on your site.
Here is a simple example of a sitemap.xml file:
<?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-15</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Make sure to update your sitemap regularly and submit it to search engines to improve your site's visibility!