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

Detailed process of using Vscode combined with docker for development

Preface Using Docker and VS Code can optimize the...

Detailed explanation of Javascript closures and applications

Table of contents Preface 1. What is a closure? 1...

A brief discussion on the placement of script in HTML

I used to think that script could be placed anywh...

Steps to deploy multiple tomcat services using DockerFile on Docker container

1. [admin@JD ~]$ cd opt #Enter opt in the root di...

Vue3 + TypeScript Development Summary

Table of contents Vue3 + TypeScript Learning 1. E...

How to hide the version number in Nginx

Nginx hides version number In a production enviro...

A brief talk about MySQL semi-synchronous replication

Introduction MySQL achieves high availability of ...

React implementation example using Amap (react-amap)

The PC version of React was refactored to use Ama...

MySQL index usage monitoring skills (worth collecting!)

Overview In a relational database, an index is a ...

Solution to forgetting mysql password under linux

The problem is as follows: I entered the command ...