Hi All,
Newbie to this forum and complete noob to web design. Got asked by my brother-in-law to update his site and so have been tinkering with it.
I've updated the site with new content, which resulted in other sites still linking to old, non-existing content and thus, 404 errors.
I've created the following basic .htaccess file containing only:
ErrorDocument 404 /not_found.php
I've created a custom 404 not_found.php and placed it in the same directory. All seems to work well when the wrong url is entered eg.:
URL:
[
coltgap.com ]
as opposed to:
URL:
[
coltgap.com ]
However, the custome 404 page does not display correctly when another directory is added to the URL, eg:
[
coltgap.com ]
It is clearly the same custom 404 page displayed in both instances, but I am clueless as to why it won't display it correctly when it's 'invoked' (for the lack of a better description) from a non-existant directory.
Any help would be sincerely appreciated.