httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Configuration of .htaccess file
Date Mon, 26 Sep 2005 13:09:47 GMT
On 9/26/05, Frank Arensmeier <> wrote:
> Hi.
> I really hope that I am on the right list now...
> I am new to Apache and I ran into a problem which I haven't found a
> solution for yet. My server is Apache 1.3.33 on Mac OS X (the bundled
> version). I am looking for a way to configure a .htaccess file the
> following way:
> 1) in a certain path of my webserver, all 404 errors should be grabbed
> and forwarded to a PHP script
> 2) I don't want Apache to send any headers before the PHP script

I'm not sure if there is a way to do that with PHP.  With a CGI
script, you simply give it a name starting in nph- (for "non-parsed
header") and then it gets to do all the headers itself (with a couple

But what you really want is simply to set the status of the response. 
In that case, you can probably use something like
header('Status: 200 OK')
to set a non-error status.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message