How to Create Your Own 404 Error Page?

It is recommended that you create your own error pages. Site visitors will be able to independently find the information they need in case of problems.

For example: "Perhaps this file has been moved or replaced with a newer one. Use the form to find the information you need on our website."

To make users go to the error page, create an ErrorDocument redirect in your .htaccess file.

An ErrorDocument redirect specifies the pages that are displayed to the user on certain errors (403, 404, 500, etc.).

Specify the error number and page address (in this example, a 404 error):

ErrorDocument 404 http://domain1.com/errors/page404.html

You can read more about setting up the .htaccess file here.

In this article, you can read about typical redirects.