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
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
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
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
4 matches
Mail list logo