How to create Baidu dead link file

How to create Baidu dead link file
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:

property
Is this field required?
illustrate
<urlset> Required Just fill in <urlset> .
<url> Required The parent tag for each URL record.
<loc> Required The URL of the page. The value must be less than 256 bytes.
<lastmod> Optional The date the file was last modified.
<changefreq> Optional How often the page is likely to change. Valid values ​​are:
  • always
  • hourly
  • daily
  • weekly
  • monthly
  • yearly
  • never
<priority> Optional The priority of this page. Valid values ​​range from 0.0 to 1.0.

<<:  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

Recommend

Node.js returns different data according to different request paths.

Table of contents 1. Learn to return different da...

Analysis of MySql index usage strategy

MySql Index Index advantages 1. You can ensure th...

Docker installation of MySQL (8 and 5.7)

This article will introduce how to use Docker to ...

Install Kafka in Linux

Table of contents 1.1 Java environment as a prere...

Detailed explanation of MySQL persistent statistics

1. The significance of persistent statistical inf...

Solution to Ubuntu not being able to connect to the Internet

Problem description: I used a desktop computer an...

mysql 8.0.19 winx64.zip installation tutorial

This article records the installation tutorial of...

Vue uses three methods to refresh the page

When we are writing projects, we often encounter ...

Linux gzip command compression file implementation principle and code examples

gzip is a command often used in Linux systems to ...

Tutorial on installing MySQL 5.7.18 decompressed version on Windows

1. Installation process MySQL version: 5.7.18 1. ...

How to make CSS child elements highly consistent with parent elements

Absolute positioning method: (1) Set the parent e...

Vue folding display multi-line text component implementation code

Folding display multi-line text component Fold an...

Detailed explanation of Vue form binding and components

Table of contents 1. What is two-way data binding...

Docker data volume common operation code examples

If the developer uses Dockerfile to build the ima...