Forum Moderators: coopster

Message Too Old, No Replies

PHP and 404 error file

ErrorDocument not working for php files

         

Jose52

11:18 pm on May 18, 2009 (gmt 0)

10+ Year Member



This command "ErrorDocument 404 http://example.com/404error.php" works in the htaccess file for html files but doesn't send php files to the error page. For example, it sends test.html to the 404error.php but doesn't work for test.php. Anybody have any thoughts?

[edited by: dreamcatcher at 5:42 am (utc) on May 19, 2009]
[edit reason] use example.com. Thanks. [/edit]

coopster

2:25 pm on May 19, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Your question is a bit confusing but if you are asking why a .php document cannot be used as the target of the ErrorDocument directive you may be experiencing a permissions issue, particularly an open_basedir [php.net] restriction if you are using any type of alias for the error docs.