Sitemap
Introduction
The sitemap helps search engines find and index all the pages of a website.
XML Sitemap Structure
The following is the basic structure of an XML sitemap:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap-image/1.1">
<url>
<loc>http://example.com/</loc>
<lastmod>2021-01-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
Important Tags
: Each page URL that you want to include in the index. : The location of the URL. : The last modified date. : How often the page is likely to change. : The priority of this URL relative to other URLs on your site.
Best Practices
- Keep the sitemap up to date.
- Submit your sitemap to search engines.
- Ensure all links are valid.