Sitemap: Why It's Important and How to Submit It Correctly

Views:
Create Time: 2026/11/03
Why Is a Sitemap Important? This article explains the three submission formats—TXT, XML, and index—as well as how to fill out the core XML fields (loc, lastmod, changefreq, priority) and the steps for submitting a sitemap via the Webmaster Platform.

A sitemap is a list of links to all pages on a website that need to be indexed. When a webmaster submits a sitemap, it’s like telling search engines, “Here are the pages on my website, and here’s where the content is updated,” allowing crawlers to crawl the site more efficiently. Search engines use the data submitted via the sitemap to understand a website’s structure and obtain updates on the latest high-quality content, which helps ensure that pages are fully indexed. Compared to passively waiting for spiders to crawl the site, actively submitting a sitemap can significantly improve crawling efficiency.

There are three main formats for submitting a sitemap: TXT text format, XML format, and Sitemap Index format.

The XML format is the most versatile; its core fields are as follows:

  • loc: Page URL; it should not be too long—search engines generally recommend keeping it under 2,048 characters;
  • lastmod: Date of last modification, in the format YYYY-MM-DD, for example, 2018-11-23;
  • changefreq: The frequency at which page content changes. Valid values include always, hourly, daily, weekly, monthly, yearly, and never;
  • priority: Page priority, with values ranging from 0.0 to 1.0, where 0 is the lowest and 1 is the highest; the default is 0.5.

Specific submission steps: Save the completed XML file to the website’s root directory. For example, if your domain is www.zongye.net, name the file sitemap.xml; Then, add your site to a search engine’s webmaster platform (such as Baidu Webmaster Tools) and submit the Sitemap URL, for example, https://www.zongye.net/sitemap.xml. Wait for the Sitemap to be crawled and verified.

The TXT format is simpler: include one page URL per line, save the file as `sitemap.txt` in the root directory, and submit it to the Webmaster Platform at https://www.zongye.net/sitemap.txt. The TXT format only supports URLs and does not include information such as modification dates or priority, making it suitable for sites with a small number of pages.

When you make changes to your website's structure or add new sections, be sure to update your sitemap accordingly and resubmit it so that search engines can continue to accurately understand your website.

For web design in Wuxi, turn to Zongye Technology.


Helping You Build an Outstanding "Internet Plus" Enterprise
Zongye Official Account