Home > Backend Development > PHP Tutorial > php header() implementation program 404 error status_PHP tutorial

php header() implementation program 404 error status_PHP tutorial

WBOY
Release: 2016-07-13 10:55:30
Original
1389 people have browsed it

This article will tell you how to use a program to send php 404 information. Students in need can refer to it.

For the ErrorDocument 404 /404.php function in the apache configuration, change the

in the nginx configuration
The code is as follows
 代码如下 复制代码

error_page 404 /404.php;

Copy code

 代码如下 复制代码

error_page 404 = /404.php;

error_page 404 /404.php;


changed to
 代码如下 复制代码
Header("HTTP/1.1 404 Not Found");
The code is as follows Copy code
error_page 404 = /404.php;

php Header implements 404 page cannot be found
http://www.bkjia.com/PHPjc/632233.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632233.htmlTechArticleThis article will tell you how to use the program to send php 404 information. Students in need can refer to it. . For the ErrorDocument 404 /404.php function in the apache configuration, put ngi...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template