Baidu SEO optimization sitemap series

What is a sitemap?
One of the three ways to submit website links, the other two are: API submission, manual submission
Sitemap (ie site map) is a list of web pages on your website. Creating and submitting a Sitemap helps Baidu discover and understand all the pages on your website. You can also use Sitemap to provide other information about your website, such as the last update date, the update frequency of the Sitemap file, etc., for Baidu Spider's reference.

Baidu does not guarantee that all URLs will be crawled and indexed for the submitted data. However, we will use the data in the Sitemap to understand information such as the structure of the website, which can help us improve our crawling strategy and crawl the website better in the future.

Also, Sitemaps have no relationship to search rankings.
What formats does Baidu Sitemap support?
The Baidu Sitemap protocol supports text format and xml format. You can choose any format to organize your sitemap according to your own situation. The specific format description and examples are as follows:

1. Example of the first format: txt text format
In a txt text, list the link address that needs to be submitted to Baidu, and submit the txt text file through the search resource platform
http://www.example.com/repaste/101562698_5230191316. html
http://www.example.com/repaste/101586283_5230215075.html
http://www.example.com/repaste/101639435_5230310576.html

This text file needs to follow the following guidelines:
· The text file must have one URL per line. There cannot be newlines in the URL.
· Should not contain any information other than a list of URLs.
· You must write the complete URL, including http.
· Each text file can contain up to 50,000 URLs and should be less than 10MB (10,485,760 bytes). If your site contains more than 50,000 URLs, you can split the list into multiple text files and add each file individually.
· Text files must use UTF-8 encoding or GBK encoding.

2. Example of the second format: xml format
The format of a single xml data is as follows:

<?xml version="1.0" encoding="utf-8"?> http://www.yoursite.com/yoursite.html 2009-12-14 daily 0.8 http://www.yoursite.com/yoursite2.html 2010-05-01 daily 0.8 The above Sitemap submitted a url to Baidu: http://www.yoursite.com/yoursite.html

If there are multiple urls, list all url addresses according to the segment between repetitions in the above format, pack them into an xml file, and submit to the search resource platform.

What are the considerations when creating a Sitemap?
First, a Sitemap file must contain no more than 50,000 URLs and be no larger than 10 MB in size. If your Sitemap exceeds these limits, please split it into several smaller Sitemaps. These constraints help ensure that your web server is not overloaded serving large files.

Second, the number of sitemap files submitted by a site must be less than 50,000. If there are more than 50,000, it will not be processed, and a prompt of "Exceeding the number of links" will be displayed.

Third, if the main domain of the website is verified, the Sitemap file can contain all URLs under the main domain of the website.

Fourth, the submission of sitemap files on the search resource platform no longer supports the form of indexed files, and the indexed files submitted in the past are no longer crawled. It is recommended that the webmaster delete them in time and submit the resources again.

How to submit a Sitemap
The first step is to make a list of web pages to be submitted into a Sitemap file. For the file format, please read which formats are supported by the Baidu Sitemap protocol.
  The second step is to place the Sitemap file in the website directory. For example, if your website is example.com, you have created a Sitemap file of sitemap_example.xml, and uploaded sitemap_example.xml to the root directory of the website, which is example.com/sitemap_example.xml
  Step 3: Log in to the Baidu search resource platform and make sure to submit it The site of the Sitemap data has verified attribution.
  The fourth step is to enter the Sitemap tool, click "Add New Data", select "URL List" for the file type, fill in the crawling cycle and the address of the Sitemap file, and finally, after submitting, you can see the submitted Sitemap
  file in the Sitemap list, if There is a new website link in the Sitemap file. After selecting the file, click Update Selected to submit the updated website link.

What is the Mobile Sitemap Agreement, how to submit the Mobile Sitemap Agreement
Baidu has launched the Mobile Sitemap Agreement, which is used to submit URLs to mobile search for inclusion. The Baidu Mobile Sitemap protocol is formulated on the basis of the standard Sitemap protocol, adding the mobile:mobile/ tag, which has four values:
mobile:mobile/ : mobile webpage
<mobile:mobile type="mobile"/> : mobile webpage
<mobile:mobile type="pc,mobile"/>: adaptive web page
<mobile:mobile type="htmladapt"/>: code adaptation

None of the above tags are indicated as PC web pages

The following example is equivalent to submitting a mobile web page to Baidu mobile search: http://m.example.com/index.html, and submitting a traditional web page to PC search: http://www.example.com/index. html, submitting an adaptive web page http://www.example.com/autoadapt.html to both mobile search and PC search:

<?xml version="1.0" encoding="UTF-8" ?>



http://m.example.com/index.html
<mobile:mobile type=“mobile”/>
2009-12-14
daily
0.8


http://www.example.com/index.html
2009-12-14
daily
0.8


http://www.example.com/autoadapt.html
<mobile:mobile type=“pc,mobile”/>
2009-12-14
daily
0.8


http://www.example.com/htmladapt.html
<mobile:mobile type=“htmladapt”/>
2009-12-14
daily
0.8

After completing the Sitemap according to the mobile Sitemap protocol, click Add New Data to submit in the Sitemap tool, which is consistent with the method of submitting a normal Sitemap.

What does the cycle I fill out when I submit mean?
Baidu Spider will crawl the Sitemap file according to the setting cycle, so please set it according to the update of the content of the Sitemap file (such as adding a new url). Please note that if the url remains unchanged but only the content of the page corresponding to the url is updated (such as a forum post page with new reply content), it is not within the scope of this update. Sitemap tools do not solve page update problems.

After the Sitemap is submitted, how long can it be processed by Baidu?
After the Sitemap data is submitted, Baidu will generally start processing it within 1 hour. In the future scheduled crawling, if your sitemap supports etag, we will crawl the sitemap file more frequently, so as to discover content updates in time; otherwise, the crawling cycle will be longer.

Will the submitted Sitemap be crawled and included by Baidu?
Baidu does not guarantee that all URLs will be crawled and included for the submitted data. Whether it is included is related to the quality of the page.

Will the "priority" hint in an XML Sitemap affect my page's ranking in search results?
Won't. The "priority" hint in a Sitemap simply indicates how important the URL is relative to other URLs on your own site, and doesn't affect a page's ranking in search results.

Does the location of a URL in a Sitemap affect its use?
Won't. The position of a URL in a Sitemap does not affect how Baidu recognizes or uses it.

Can the url submitted in the Sitemap contain Chinese?
Because of the transcoding problem, it is recommended not to include Chinese.

Guess you like

Origin blog.csdn.net/qq_45381281/article/details/123992401