相关疑难解决方法(0)

为什么我的PHP应用程序不会发送404错误?

if (strstr($_SERVER['REQUEST_URI'],'index.php')) {
    header('HTTP/1.0 404 Not Found');
}
Run Code Online (Sandbox Code Playgroud)

为什么不这样做?我得到一个空白页面.

php header http-status-code-404

141
推荐指数
6
解决办法
14万
查看次数

标签 统计

header ×1

http-status-code-404 ×1

php ×1