I have followed the instructions in the book and edited the httpd.conf file and restarted apache, and have created the custom error page error.php and saved it in the appropriate folder but when I hit an error page within the localhost (for example the page not found error when I go to http://localhost/index.php
) I am still seeing the standard internet explorer 'page not found' rather then the error.php page.
Can anyone help me figure out what I've missed?
I have changed the httpd.conf file so that it reads:
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500
Any help would be appreciated.