Within the Settings module, there is an option labelled Custom 404 Filename. This page is used when someone visits a page that does not, or no longer exists on your website. The 404 page can provide helpful information to your visitor to help them on their way.
Please Note: there are two sections that must be completed before the 404 page is setup.
Creating the Custom 404 Error Page
To set your 404 page up, first add a content page that you'd like to use for it. We recommend naming it 404 or 404.php so it's obvious to you what it is.
You can use the basic page template below to get started:
- Page URL: 404.php
- Status: Published
- Page Name: 404 Page Not Found
- Section Header (h2): Page Not Found
- Page Header (h1): Oops! We Couldn't Find That Page!
- Page Content: "The page you requested is no longer here... "
Setting the Custom 404 Error Page
To set the custom 404 Error Page navigate to the Settings module and find Custom 404 Filename.
Set the Custom 404 Filename to what you set as the Page URL in the first steps, listed in "Creating the Custom 404 Error Page".
Once you save the changes in Settings when a visitor lands on a page that does not, or no longer exists on your website, they will be directed to a page that will look like the one below: