InMotion Hosting Support Center

In this article we'll discuss how you can setup a custom 404 error page for your website. This will allow you to control exactly what message is displayed to your visitors when they try to request a page that doesn't exist.

If you read our previous article on 404 error not found pages, you should have a good understanding of why creating a custom 404 error page can be helpful.

You can simply upload a file such as 404.html to your website via FTP, or if you prefer you can follow the instructions below for creating this file in cPanel via the File Manager.

  1. Login to your cPanel.
  2. Under the Files section, click on File Manager.
  3. Select the Web Root (public_html/www) option.
  4. Click Go.
  5. file-manager-go
  6. From the top left-hand menu, click on New File.
  7. Under New File Name: type in 404.html then click Create New File.
  8. Right-click on the newly created 404.html then click on Edit.
  9. In the Text Editor pop-up, simply click on Edit.
  10. Now you'd want to type in the HTML code for your custom 404 page, in this example we're using a very basic one that you can copy if you'd like. However you can get very fancy with your own, even going so far as to copying the style and images of your main site and placing your error message in the middle of that.

    <title>404 Page Not Found</title>

    <H2>We're sorry but the page you're looking for could not be found</H2>


  11. After you've made your edits, click on Save Changes, and you should see a green Success pop-up.
  12. Now if you directly try to pull up /404.html in your web-browser, you should see the page we just created.

Now that you've learned how to create a custom 404 error page to handle your 404 errors, you'll also more than likely want to learn about setting a 404 error page via .htaccess. This way any requests for non-existent pages will go directly to your custom static 404 error page that you just created.

You can get even more advanced with your 404 error page by using Google's custom 404 page widget as well. This can help provide relevant content from your site to visitors from a Google search against your website.

If you're using WordPress you might also be interested in learning about how to cache 404 pages in WordPress using the W3 Total Cache plugin.

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-10-07 3:50 pm
explicando la forma correcta de activar un error404 personalizado, y que funcione.
Translated by Google: explaining the correct way to trigger a custom error404 , and it works.
n/a Points
2015-02-18 6:31 am

Thanks :) I did it!

Useful guide.

n/a Points
2015-02-19 6:10 am
This was extremely helpful!
n/a Points
2015-10-06 6:30 am

.htaccess file not work in

5,833 Points
2015-10-06 11:02 pm
Hello Digambar,

Can you please provide what modifications you are trying to perform? Also are you using Apache as your web server service?

Best Regards,
TJ Edens

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

6 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!