if (strstr($_SERVER['REQUEST_URI'],'index.php')){ header('HTTP/1.0 404 Not Found'); echo "<h1>404 Not Found</h1>"; echo "The page that you have requested could not be found."; exit();}如果您查看最后两行回显线,则将在其中看到内容。您可以根据需要自定义它。