$redirectUrl = "http://www.example.com/404.html"; header("HTTP/1.0 404 Not Found"); print(file_get_contents($redirectUrl)); exit;