Re: [users@httpd] Configuration of .htaccess file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/26/05, Frank Arensmeier <frank.arensmeier@xxxxxxxxxxxxxxxxx> 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
exceptions).

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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux