sitemap.xml
A `sitemap.xml` file is an essential component for search engine optimization (SEO) as it helps search engines understand the structure of your website. Here’s a basic overview of its structure and purpose:
Purpose of sitemap.xml:
- Guides search engines to crawl your site more effectively.
- Informs search engines about new or updated pages.
- Enhances indexing of your website's content.
Basic Structure of sitemap.xml:
- urlset - The root element that contains all url entries.
- url - Represents a single URL entry in the sitemap.
- loc - The location of the URL.
- lastmod - The date the URL was last modified (optional).
- changefreq - How frequently the content at the URL is likely to change (optional).
- priority - The priority of the URL relative to other URLs on the site (optional).
Example of sitemap.xml:
<?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>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.example.com/about</loc>
<lastmod>2023-09-15</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
Remember to submit