You definitely sent me in the right direction for finding the answer.
It looks like adding the following to my Page_Load function (this is
using c# with Mono, I've actually never used php) does the trick:
Response.StatusCode = 404;
Response.StatusDescription = "Not Found";
Though the respo
From: "David P. Donahue" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, July 27, 2005 10:44 AM
Subject: [EMAIL PROTECTED] Custom 404 ErrorDocument Logs a 200
Is there a way to make it log as a 404? I only ask because I have a
reporting engine looking through my logs and it's
(Using Apache 1.3.33) I have my httpd.conf file specify custom error
pages for 404 errors (and some other errors, but that's not important).
I'm noticing in my logs, however, that when a user goes to a
non-existant page and the server returns the custom 404 page, it's
logged as a 200 instead