I have been working on this "ErrorDocument 404 issue
" for the afternoon and I have been unable to solve this issue just yet. Can you please help.
I have set up my custom error 404 page and from that I have been trying to link it to any URL that a user miss spells or incorrectly types into the URL slot. I have been using
ErrorDocument 404 / example.php
to try and link the users to my error 404 page. It has been acting very weird as I have experienced it only working under certain conditions... As listed below
- It only works when the actual name of the file is used rather than the new one we created for it... https://www.mywebsite.com/FileName.php (It returns error 404 with the correct error 404 page)
- When it has more than one "/" in the part of the URL after the name of the website... ei: https://www.mywebsite.com/File/Wrong_Page/ (it returns Error page 404)
But when I try anything else it just returns the standard error message of "File not found" with a blank page.
Anything other than the examples given above... Does not work at all!
How can I fix this so that my website will always display the error 404 page instead of the default file not found page or error page of the Search Engine?