If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)


Featured templates

JS Animated. How to integrate custom 404 error page

This tutorial shows how to create a custom 404 page for your HTML website

JS Animated. How to integrate custom 404 error page
  1. Create the Custom 404 page:

    Create a file called 404.html (or whatever you want to call it) with any message you want your visitors to see when they hit any missing page. A small sitemap and / or search box is a nice idea, along with letting them know the page they requested is not available. You might also be interested in checking out some tips for a useful 404 error page.

    In our case 404.html page has been already created:


    Note that 404 page is included in the HTML5 and Bootstrap Template packages.

  2. Create the .htaccess:

    Open your .htaccess file if you already have one. If not, then open notepad or your favorite text editor (a WYSIWYG editor won’t work here) and add this line:

    ErrorDocument 404 /404.html

    You can name your error file whatever you’d like and use any extension you are most comfortable with, however, DO NOT use an absolute (full URL including the domain name) here:

  3. Upload:

    Make sure your FTP program is set to upload in ASCII mode, upload the 404.php, then the .htaccess:

  4. Make sure your browser cache is cleared and type in a file that doesn’t exist on your server. Something like http://www.example.com/oops. You will see your new 404 page:

  5. Notes About a Custom Error Page

    What you have on your error page is your personal choice. Some people prefer just a link to the main page, others go for a more friendly approach and let the visitor know that the page isn’t available and create a nicely designed page with links to other areas or even a search to let them find what they wanted.

Feel free to check the detailed video tutorial below:

JS Animated. How to integrate custom 404 error page
Live Chat
We help you to choose the right product.
Start chat