
August 31st, 2012, 05:43 PM
|
|
Registered User
|
|
Join Date: Aug 2012
Posts: 12
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
|
|
|
What error message do you get when you point the browser to a file that does not exist? Does it contain a line like:
'A 404 error was found when trying to use an ErrorDocument do handle the request.'
If this is not there, then the server may not be interpreting your directives. Remember you need to restart the server every time to edit httpd.conf.
If it is there, try changing the directive to
ErrorDocument 404 /errors/filenotfound.php
The first slash tells the server to look from the ServerRoot directory for the file, instead of in the non-existent directory. With your current directive, if you request the page "/foo/bar/index.php", the server will look look for /foo/bar/errors/filenotfound.php which obviously doesn't exist. Changing the ErrorDocument to above will make the server look in "/errors/filenotfound.php" which is what you want.
Hope that helps.
|