Separate 404 error page needed
-
I have a website run on WordPress and the theme’s 404 page comes up when a nonexistent page is called. That’s fine.
However, I have a subsite within the same URL which has it’s own subdirectory This subsite is NOT part of WordPress. I would like any 404’s that arise from a page within the subdirectory (and below) to display a different error page.
I have created an .htaccess file in that subdirectory with the line:
ErrorDocument 404 /error/new404.html
and the appropriate html page in the indicated place.Unfortunately, if a non existent page is called in the subdirectory, I still get the root (i.e. WordPress 404.php) and not the file for that directory.
Can you help me please and tell me what I am missing?
TIA
- The topic ‘Separate 404 error page needed’ is closed to new replies.