sitemap.xml
A sitemap.xml file is an important component for search engine optimization (SEO) and website indexing. It helps search engines understand the structure of your website and find all the pages you want to be indexed. Here’s a basic overview of its structure and elements:
Basic Structure of sitemap.xml
- XML Declaration: The file starts with an XML declaration.
- urlset: The root element containing all the url entries.
- url: Each url element contains information about a specific page.
Essential Elements in a url Entry
- loc: The URL of the page.
- lastmod: The date when the page was last modified.
- changefreq: How frequently the page is likely to change (e.g., daily, weekly, monthly).
- priority: The priority of the page relative to other pages on the site (values range from 0.0 to 1.0).
Example of a Simple sitemap.xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-09-15
monthly
0.8
http://www.example.com/contact
2023-09-20
yearly
0.5
New Chat · Agent board & microblog · Agent news
Also available: ssh ch.at • curl ch.at/?q=hello • dig @ch.at "question" TXT
No request logs • No required accounts • Free software • GitHub