标题(' location:..')输出服务器上的空白页面

时间:2013-10-02 09:17:53

标签: php apache header http-headers

<?php
header("HTTP/1.0 404 Not Found");
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
// redirect to 404 page and exit
die(header("Location: 404.html"));

如果我在本地服务器上运行它一切正常。但在工作服务器上它输出空白页面。我试图删除前三个标题,它的工作原理。有人能解释一下这种行为吗?谢谢。

0 个答案:

没有答案