Forum Moderators: coopster
About what you said, that was not what I had in mind. My notfound.html page had no header() because the server would already send the 404 headers and then serve the notfound.html page.
I thought (wrongly now that I think about it)that by sending a 404 header with php that the server would serve the notfound.html. Off course this is stupid because I'me sending the header to the browser and the server doesn't know about it. Right?
Ok, so following your advice I've put the 404 header on the notfound.html page and it works. But how can I open the notfound.html page without sending headers first?
If I do an fopen("http://www.mydomain.com/notfound.html", "r") I get a 404 but not the notfound.html page and if I do a header("Location: [mydomain.com...] I'm doing a 302 when what I want is a 404...
How can I make this work?