In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to make sitemap index file". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to make sitemap index files.
What are sitemapXML files and sitemap index files?
There are many explanations on the Internet, and there are also explanations within Baidu, but they are more professional. To put it simply, these two files are to link the content of your site through this code that accords with Baidu spider crawler algorithm to attract crawlers to crawl. Sitemap is the entrance for Baidu to introduce high-quality resources. For high-quality resources that can be quickly introduced and presented to users, you can tell Baidu what quality pages are available on your site through the Sitemap tool. Help Baidu Spider know more about your site, including those pages that traditional spider may not be able to find. Log in and add a website to use. There are three Sitemap file formats: txt text format, xml format, and Sitemap index format. Among them, the comparison of txt format requires a large amount of work and is not recommended. Here are the other two production methods.
How to make the XML file of Baidu sitemap?
The following is a XML file format, as long as it is made according to this format. XML file production can find the new XML file in the software DW, and then change it according to the code of your website.
This tag is in coded format. If your site is in GBK mode, fill in GBK, and if it is UTF-8, fill in UTF-8. Is the start tag, is the end tag, in which the link http://www.zhaoran.cc/sitemapxml/index.xml is your site needs to submit to Baidu articles or other content links. The content in this tag is the date, that is, the date on which you made this document, and the frequency of crawling in the tag, which is set to daily, which means crawling once a day. Fill in this according to the degree of update of your website. If you update diligently, fill in it faster, and here you will fill in it all day in order to make it easier. The label is the priority value, and the number in it is between 0 and 1. Websites will have multiple URLs, and each site will be added in this format. If you need to add the next one, copy the content from to it, just replace the date and link inside. (including tags) can be saved after production, the file name is defined by itself, but it is defined as sitemap to facilitate Baidu to collect. Finally, upload it to the root directory of the website.
How to make sitemap index file?
This document is relatively simple and the principle is similar.
The other tags are not explained here, just need to know how to replace them. The link inside is the address of the XML file made above. If you need more than one sitemap XML file in the world, just add it as above. Don't explain too much here, let's take a look at the one above. After the production is completed, it is also uploaded to the root directory of the website.
When you are done, the execution will begin. If you have used an intra-site search, log in to the on-site search at http://zn.baidu.com/.
Click to improve the inclusion effect
There are two ways to submit a seed page and a list of web pages. The list of submitted web pages will be much better, so this is recommended here.
Click to add new data, the data here is just introduced above, submit the XML file of sitemap. If you have less than 50000 links to articles on your site, you only need to submit the XML file for sitemap. If the link to the article is greater than 50000, you can make an index file for sitemap, and the address of the index file is submitted here. After the completion of the submission, Baidu will automatically crawl, generally if the content is not much will soon be included, after the update can go to Baidu search to see if it is included, and it is up-to-date.
What if you don't use on-site search?
Do not worry, also follow the above steps to complete the production of the sitemap file, upload to the root directory of the site, and then put the file address link to the bottom of the site, be sure to put it at the bottom of all pages, which is conducive to inclusion.
At this point, I believe you have a deeper understanding of "how to make sitemap index files". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.