When using a 302 Status code, the below code works, but when I change it to a 404, it does not work....is there something different that needs to be done to redirect to a 404 page and give that HTTP response?
This works: die(header("Location: /404.php", true, 302));
This does not work: die(header("Location: /404.php", true, 404));
Thanks for the help!
[edited by: tec4 at 4:02 pm (utc) on Jul 19, 2012]
That's working to yield the desired 404 response, but file_get_contents() reads the contents of a file into a string so instead of giving a functional web page (the page I'm trying to fetch is a PHP page) it renders the actual php code into the page source code.