Re: PHP-CGI: custom 404 error?
| From: | Christophe Chisogne | Date: | Fri, 15 Oct 2004 07:46:27 +0000 |
| Subject: | Re: PHP-CGI: custom 404 error? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199565@lists.php.net to get a copy of this message | ||
Jared wrote:
foo.php, I get "No input file specified." Instead of the standard 404 error. Is there a way to customize this?Easy with Apache [1,2], with en ErrorDocument [1] directive. Ex with this in a .htaccess (the FileInfo Override [3] is required) containing this line: ErrorDocument 404 /Lame_excuses/not_found.html
I've read about it and the consensus is that you can't.Upgrade consensus :)
Wouldn't it be easy to add a custom 404 error page via php.ini or something?Easy with Apache (.htaccess or httpd.conf). Ok, not via php.ini. Christophe [1] ErrorDocument directive http://httpd.apache.org/docs/mod/core.html#errordocument [2] Using XSSI and ErrorDocument to configure customized international server error responses http://httpd.apache.org/docs/misc/custom_errordocs.html [3] AllowOverride directive http://httpd.apache.org/docs/mod/core.html#allowoverride