Re: files being downloaded when a 404 occurs

From: Date: Mon, 11 Aug 2003 05:37:03 +0000
Subject: Re: files being downloaded when a 404 occurs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159104@lists.php.net to get a copy of this message
Look at this bug file : http://bugs.php.net/bug.php?id=25009 It's been fixed in the CVS snapshots, anything after the 11PM GMT on the 10th of August works. hth. --- Rigi Toney <anony@pauridge.org> wrote: > Hello, > > I'm using Apache 2.0.47 (Unix) with PHP 4.3.3RC2. > > My httpd.conf file reads : > > AddType application/x-httpd-php .html > > ... and then a little further down > > ErrorDocument 404 /404redir.html > > (404redir.hml is a PHP file, consisting of : <?php > header("Location: > /404.html"); ?> ) The reason why I do this is so > that > the Google Adsense > doesnt' display welfare ads, since the 404 page > contains a lot of keywords! > > Anyway, the problem is this. > > When a 404 occurs, for say a directory ... > http://localhost/heidkjsdjksd > .... which doesnot exist... everything works > great... > i get redirected as > per requirement. Now when a .php files occurs .. it > still works > (http://localhost/sdjkdkjskd.php) .... BUT when a > .html files occurs... > http://localhost/crap.html .... it starts to > download > the file... and the > browser says can't download!!! > > And now when I add a .php file to my AddType... it > happens for the .php file > too... so since i've moved my website.. and had .php > files... i can't use > the .php extension otherwise 404's don't get logged > and taken care of! > > Help appreciated. thank you. > Tony. ===== Mukul Sabharwal (mjsabby@yahoo.com) __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

« previous php.general (#159104) next »