How to display a custom 404 error page

Your web host's server displays a "404 File Not Found" error whenever a visitor tries to access a page on your website that doesn't exist.

You can replace the default 404 error page with a page of your own. On it, you could include a site search form or link users to your website's home page.

Here's how to display your own 404 error page:
  1. Create the page you would like to use when a 404 error occurs and save it as 404.html.
  2. Open Windows Notepad, and type in the line below:
    ErrorDocument 404 /404.html
  3. Save the file as .htaccess.
  4. Upload 404.html and .htaccess into the folder on your server where your website's home page is located.

Now whenever someone goes to a page that doesn't exist, they'll see 404.html instead of the server's default 404 error page.