sitemap.xml
A sitemap.xml file is an XML file that lists the URLs for a website along with additional information about each URL. This helps search engines like Google to crawl the site more effectively. Below is a brief overview of its structure and purpose.
Purpose of Sitemap.xml
- Helps search engines discover pages on your site.
- Provides information about the organization of your site content.
- Indicates the last updated date for each page.
- Indicates the frequency of updates for the content.
- Specifies the priority of each page relative to other pages on the site.
Basic Structure of Sitemap.xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-09-15
yearly
0.5
http://www.example.com/contact
2023-09-20
yearly
0.5
Key Elements
- loc: The URL of the page.
- lastmod: The date the page was last modified.
- changefreq: How often the page is likely to change (e.g., daily, weekly, monthly).
- priority: The priority of the page relative to other pages on the site (0.0 to 1.0).