Steven J. Sobol wrote:
I have an active Midgard page that, given an URL
http://some.site.com/activepage/abc.def
will pull up article "def" in topic "abc".
If the article doesn't exist I want to send a 404 header to the browser, but in such a case, header("Status: HTTP/1.0 404 Not Found") doesn't work.
What do you mean by doesn't work? What happens? Have you checked the header with wget or
http://www.searchengineworld.com/cgi-bin/servercheck.cgi
You probably know that, but the point is that apache want display a 404 message for you. You need to produce some HTML yourself, in addition to sending the status header. So you could do something like
header("Status: HTTP/1.0 404 Not Found");
echo 'Sorry, 404 NOT FOUND';
exit;
You can - and you have to - return a nice page even if you trigger a 404 header. :-)
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
