There are two types of dead link formats defined by Baidu: 1: XML format dead link file We know that the XML format is commonly used in website maps, especially Google maps (such as sitemap.xml). In general, most webmasters use some software or common XML online generation tools and program-provided generation plug-ins to create the sitemap.xml map file of the website. However, the broken link tool that Baidu just launched does not have such software when creating XML format files, because broken links are not fixed, and it is difficult to design software to automatically judge and generate files. Therefore, we need our webmaster to manually write our Xml dead link file, as follows: The specific format is as follows: <?xml version="1.0" encoding="UTF-8"?> <urlset> <url> <loc>http://your broken link URL, must include http://</loc> </url> </urlset> in <url> <loc>http://your broken link URL, must include http://</loc> </url> This is the format for making broken link files. If there are multiple links, copy and write the files in this format. 2: Dead link file in txt format Compared with the dead link file in XML format, the dead link file in TXT format is much simpler to create. You only need to create a new TXT text file and put all the dead link paths into the TXT file. However, it should be noted that only one URL can be written on each line, and there cannot be line breaks in the URL. The file cannot contain any information other than the URL, and each file can contain up to 50,000 URLs and the file size must be less than 10KB. If there are extra ones, you can create multiple ones. Note: Each URL must start with http://. In addition, it is not recommended to use text files to create broken links. Sometimes some special characters may cause Baidu to identify the number of broken links inaccurately. In addition, it is stated that this article is an original article from Computer Software and Hardware Application Network. Please indicate the source and author when reprinting. Finally, attach the XML tag description:
|
<<: How to use the flash plug-in to call the PC's camera and embed it into the TML page
>>: A very detailed tutorial on installing rocketmq under Docker Desktop
Building an image is a very important process in ...
Recently, when using select query in a project, I...
1. Import the basic style of external CSS files U...
HTML stands for Hypertext Markup Language. Nowada...
Table of contents Preface 1. What is scalability?...
Basic three-column layout .container{ display: fl...
When using CSS pseudo-elements to control element...
When shutting down the MySQL server, various prob...
This article shares with you a detailed tutorial ...
1. Design source code Copy code The code is as fol...
What problems does MySQL ROLE solve? If you are a...
Preface Hello everyone, this is the CSS wizard - ...
Table of contents 1. Process 2. Core Architecture...
This is a cheating scheme for voting websites wit...
Table of contents 1. this keyword 2. Custom attri...