I have a new WP website in stage (https://cpanel-511-syd.hostingww.com/~bcctovkp/) that I need help with the functioning of the site when you try to navigate to a page or file not defined within this WP site.
There are two separate (but related) issues.
The 1st one is strange:
If you try to navigate to this invalid URL: https://cpanel-511-syd.hostingww.com/~bcctovkp/a/b/test.gif, or this one: https://cpanel-511-syd.hostingww.com/~bcctovkp/a/b/c/ you will get a page that displays all the [full length] posts, one right after the other on one long page.
The sub-directories a, b and c are non-existent, and so is the test.gif file. It doesn't matter what you enter as an invalid path, as long as you have at least THREE sub-directories or TWO sub-directories AND a file, you will get this long posts page.
If you try to navigate to any other invalid URL like this: https://cpanel-511-syd.hostingww.com/~bcctovkp/a/test.gif or this: https://cpanel-511-syd.hostingww.com/~bcctovkp/a/b/, you will get the standard "Oh no! No content is appearing for this page!" message displayed on the page instead.
I would like to figure out what causes the long posts page to display sometimes instead of the "Oh no" message. (And bonus points if you can tell me the default WP page that creates the long post page.)
Second issue isn't really a problem, but more a question of WP functionality:
Ideally, I would like to get my 404.php page to display when any visitor enters any invalid URL on my domain (instead of the getting the "Oh no" message).
I have created a test 404.php page, which can be found here: https://cpanel-511-syd.hostingww.com/~bcctovkp/404.php. It is located in the root directory.
I think WP allows you to use your own 404.php page? If so, where should it be placed, and how do you activate the 404 page?
Thanks for any help you can provide.