Home >Backend Development >PHP Tutorial >Customizing the header 404 status error page in php_PHP tutorial
The 404 page is a way to tell the search engine that this page does not exist. It also prompts the user to choose other operations. Now I will introduce the operation method of customizing the 404 page in PHP to friends who do not have apache operation permission.
Method 1
The code is as follows
|
Copy code
|
||||||||||||||||||||
@header("status: 404 not found");
Loads a 404 error page
|