Websites with a deep structure can be difficult for crawlers to index. The sitemap feature provides a clear overview of your site architecture by crawling its pages. This topic describes how to use sitemap settings to automatically generate a sitemap file.
Background information
A sitemap is a navigation file for your website, generated from its structure, framework, and content. It guides web crawlers and helps increase the indexing of your important pages. The sitemap is usually stored in the root directory and named sitemap. This product can automatically generate a sitemap. You can also manually upload an XML file created with a sitemap generation tool.
Set up a sitemap
-
In the navigation pane on the left of the website console, click .
-
On the Auto-generate tab, manage sitemap entries on the Pages, Articles, and Products subtabs. Click + Add Page to add a page to the sitemap. For each page, set the Priority (for example, 0.8) and Change Frequency (for example, monthly). When you are finished, click Save and Update in the upper-right corner to apply the sitemap. You can also click Preview to see the result.
-
Priority: This is the
priorityattribute. It defines the priority of a URL relative to other URLs on your site. The value ranges from 0.1 to 0.9. A higher value indicates a higher priority. Search engine crawlers usually crawl high-priority pages first. The priority of your home page should be higher than other pages. -
Change frequency: This is the
changefreqattribute. It indicates how frequently the page content changes. The value you specify in the sitemap should match the actual update frequency of your website. Do not set the change frequency tomonthlyoryearly. This can slow down website indexing. -
If you already have a sitemap file, click Manual Upload to upload it.
-
You can view the sitemap file at
domain-name/sitemap.txt.
Submit a sitemap in Baidu Webmaster Tools
Baidu Webmaster Tools can help speed up website indexing. Follow these steps:
-
Make sure that you have completed site verification. For more information, see Get the Baidu site verification code or file.
-
Log on to the Baidu Webmaster Platform. Click . Enter the data file address in the input box and then save.
-
For an auto-generated sitemap, enter the file address in the format
domain-name/sitemap.txt. -
For a manually uploaded sitemap, enter the file address in the format
domain-name/sitemap.xml.