I'm trying to set up my .htaccess to display "FAIL" if a file/directory cannot be found. For some reason, the code works on directories and sub-directories, but not on actual file names.
I.E. Navigating to "site.com/fakeDirectory/" will output "FAIL", but site.com/fakeFile.php" will output "File not found."
Literally all I'm using for for this is
ErrorDocument 404 "FAIL"
I would assume that a non-existent file would fall under the same 'category' as a non-existent directory.
EDIT:
This problem appears to only be affecting files with the ".php" extension, for some reason.