<?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"));
If I run it on local server everything is ok. But on working server it outputs blank page. I tried to remove first three headers, and it works. Anybody can explain me this behavior? Thank you.