RE: [PHP] PHP as external script and Apache : configuring 404 err ors

From: Date: Wed, 04 Jul 2001 08:58:27 +0000
Subject: RE: [PHP] PHP as external script and Apache : configuring 404 err ors
Groups: php.general 
Request: Send a blank email to php-general+get-56144@lists.php.net to get a copy of this message
Why not to use 404.php4 as a Error page, then a header or an include of 404.html ? Do I make any sence? Sounds too simple for me to answer your question, maybe I didn't understand it well. -maxim maletsky -----Original Message----- From: Laurent INFOS [mailto:infos@aql.fr] Sent: Wednesday, July 04, 2001 4:24 PM To: php-general@lists.php.net Subject: [PHP] PHP as external script and Apache : configuring 404 errors Hello, I have : - Apache 1.3.x - PHP 4.0.5 (not a module, but a separate script) - the directive ErrorDocument is configurated : ErrorDocument 404 /404.html My problem : - http://server/filenotpresent gives a 404 error, and open 404.html. It's OK. - http://server/filenotpresent.php4 calls php before verifying if "filenotpresent.php4" exists. So, instead of opening /404.html, we got an internal error because "/usr/.../bin/php filenotpresent.php4" returns no data. My question : Is there is a way : - to tell php to generate an HTML page containing a redirect to /404.html, if the given file doesn't exists or - configure Apache to force it to check if the file exists before calling php ? Thanks for your help. Laurent. PS : I sent this email to php-install yesterday, but I didn't have any answer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#56144) next »