sitemap.xml
A
sitemap.xml file is an XML file that helps search engines understand the structure of a website. It provides a list of URLs for a site along with additional metadata about each URL. Here are some key points about
sitemap.xml:
- Purpose: To inform search engines about pages on the site that are available for crawling.
- Format: Written in XML format.
- Components:
- URL: The address of the page.
- Last Modified: The date the page was last updated.
- Change Frequency: How often the page is likely to change.
- Priority: The priority of the page relative to other pages on the site.
- Benefits:
- Improves site visibility in search engines.
- Helps search engines discover new or updated content quickly.
To create a simple
sitemap.xml, follow this structure:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap-image">
<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/page1</loc>
<lastmod>2023-09-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
New Chat
Also available: ssh ch.at • curl ch.at/?q=hello • dig @ch.at "question" TXT
No logs • No accounts • Free software • GitHub