Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Joshua Slive
On 9/26/05, Sean Conner <[EMAIL PROTECTED]> wrote: > > 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). > > What except

Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Sean Conner
It was thus said that the Great Joshua Slive once stated: > > On 9/26/05, Frank Arensmeier <[EMAIL PROTECTED]> wrote: > > > > 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 scrip

Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Frank Arensmeier
Thank you all for your suggestions. It turned out that the answer is quite simple. In the PHP script, the only thing to do is to send a "HTTP 1/1 200 OK" status code. Because this will actually override the previous 404. This was the simple answer to a question which I thought seemed to be very

Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Joshua Slive
On 9/26/05, Eugene <[EMAIL PROTECTED]> wrote: > I think there's a way to do either. > > To redirect while sending the 404 status code to the client: > > ErrorDocument 404 /path/to/script.php > > To redirect while NOT sending the 404 status code to the client: > > ErrorDocument 404 h

Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Eugene
On Mon, Sep 26, 2005 at 08:09:47AM CDT, Joshua Slive <[EMAIL PROTECTED]> wrote: : On 9/26/05, Frank Arensmeier <[EMAIL PROTECTED]> wrote: : > : > 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

Re: [EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Joshua Slive
On 9/26/05, Frank Arensmeier <[EMAIL PROTECTED]> 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 co

[EMAIL PROTECTED] Configuration of .htaccess file

2005-09-26 Thread Frank Arensmeier
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 pa