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

How to use not in to optimize MySql

Recently, when using select query in a project, I...

What is html file? How to open html file

HTML stands for Hypertext Markup Language. Nowada...

Basic principles of MySQL scalable design

Table of contents Preface 1. What is scalability?...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

How to safely shut down MySQL

When shutting down the MySQL server, various prob...

MySQL 8.0.20 installation and configuration detailed tutorial

This article shares with you a detailed tutorial ...

Form submission page refresh does not jump

1. Design source code Copy code The code is as fol...

Detailed explanation of MySQL 8's new feature ROLE

What problems does MySQL ROLE solve? If you are a...

How to achieve 3D dynamic text effect with three.js

Preface Hello everyone, this is the CSS wizard - ...

Getting Started with Mysql--sql execution process

Table of contents 1. Process 2. Core Architecture...

Using HTML to implement a voting website cheating scheme that restricts IP

This is a cheating scheme for voting websites wit...

Detailed explanation of this reference and custom properties in JavaScript

Table of contents 1. this keyword 2. Custom attri...