What is Software 404 and 404 Error and what is the difference between them

What is Software 404 and 404 Error and what is the difference between them
First of all, what is 404 and soft 404?
404: Simply put, when a user enters a link to a page that does not exist, the returned page will be represented by a 404 code.
Soft 404: Soft 404 means that when the page a user visits does not exist, a 200 code is returned instead of a 404 error code. Guide users to continue visiting the website.
I think you have already seen the difference between them:
404: Returns a 404 error page to the user, with the HTTP status code being 404;
Soft 404: Returns an error page to the user with a status code of 200.
So under what circumstances will soft 404 appear?
Generally speaking we divide it into:
1: Server configuration error;
2: There is an error in the website program or template;
3: The website is attacked maliciously;
4: Caused by the website administrator’s mistake.
How to deal with soft 404, at this time we can use robots.txt file or nofollow to prevent the crawler from crawling the pages you don’t want it to crawl. For ordinary users, soft 404 will inevitably lead to a high page bounce rate. So, in order to achieve a better user experience, we can appropriately modify the soft 404 error prompt page instead of returning to the system default page or even the website homepage.

<<:  Javascript closure usage scenario principle detailed

>>:  The first step in getting started with MySQL database is to create a table

Recommend

Example code for css flex layout with automatic line wrapping

To create a flex container, simply add a display:...

Vue implements image dragging and sorting

This article example shares the specific code of ...

Docker deployment of Kafka and Spring Kafka implementation

This article mainly introduces the deployment of ...

jQuery achieves seamless scrolling of tables

This article example shares the specific code of ...

CSS code to achieve background gradient and automatic full screen

CSS issues about background gradient and automati...

WeChat applet implements the snake game

This article shares the specific code of the WeCh...

Detailed explanation of WeChat Mini Program official face verification

The mini program collected user personal informat...

Ubuntu Basic Tutorial: apt-get Command

Preface The apt-get command is a package manageme...

MYSQL A question about using character functions to filter data

Problem description: structure: test has two fiel...

Vue+SSM realizes the preview effect of picture upload

The current requirement is: there is a file uploa...

Summary of all HTML interview questions

1. The role of doctype, the difference between st...

Example of implementing GitHub's third-party authorization method in Vue

Table of contents Creating OAuth Apps Get the cod...

Causes and solutions for MySQL deadlock

The database, like the operating system, is a sha...