Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler & posted data...

2005-07-11 Thread Burhan Khalid
Rasmus Lerdorf wrote: [ snip ] A better option may be to just use mod_rewrite. Something along the lines of: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)\.html$ $1.php [T=application/x-httpd-php,L] You should verify this with the mod_rewrite docs, but this should only rewrite a reque

Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler & posted data...

2005-07-10 Thread Rasmus Lerdorf
Raymond C. Rodgers wrote: > On Sat, 2005-07-09 at 02:04 -0700, Rasmus Lerdorf wrote: >>No, you can't do what you are trying to do the way you are trying to do >>it. Apache changes the original POST to a GET request on the internal >>errordocument redirect so PHP can't get at the original posted da

Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler & posted data...

2005-07-10 Thread Raymond C. Rodgers
On Sat, 2005-07-09 at 02:04 -0700, Rasmus Lerdorf wrote: > Raymond C. Rodgers wrote: > > I'm trying to write an error handler in PHP to try to avoid sending the > > browser a 404 error message. Basically, if someone > > requests /whatever.html on the server and it doesn't exist, my 404 error > > ha

Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler & posted data...

2005-07-09 Thread Rasmus Lerdorf
Raymond C. Rodgers wrote: > I'm trying to write an error handler in PHP to try to avoid sending the > browser a 404 error message. Basically, if someone > requests /whatever.html on the server and it doesn't exist, my 404 error > handler checks to see if /whatever.php exists, if so, it then include

[PHP] Apache 1.3x/PHP 5.0.3 404 error handler & posted data...

2005-07-09 Thread Raymond C. Rodgers
I'm trying to write an error handler in PHP to try to avoid sending the browser a 404 error message. Basically, if someone requests /whatever.html on the server and it doesn't exist, my 404 error handler checks to see if /whatever.php exists, if so, it then includes that file. That part works fine