How to Set a Custom 404 Page With htaccess

10 Views
Published
Learn how to create a custom 404 page using the .htaccess file. You can specify a custom static 404 page or add a basic page directly in the .htaccess file. This is what will display when visitors to your site try to access a page that does not exist.
You can create a custom 404 by adding the following code to your .htaccess file:
ErrorDocument 404 /404.html

You can also specify an existing page. In this example, there is a page titled 404.html:
ErrorDocument 404 /404.html

00:00 Intro
00:39 Show Hidden Files
00:47 How to Create an .htaccess File
00:59 Set a Custom 404 Page
01:55 Outro

► To learn more, check out our full article on How to Set a Custom 404 Page With .htaccess:
https://www.inmotionhosting.com/support/website/set-custom-404-page/

► You can also find out more by going to our Website Educational Channel:
https://www.inmotionhosting.com/support/website/

Related Articles
► How to Login to cPanel:
https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/

► How to create a new file:
https://www.inmotionhosting.com/support/website/create-new-file/

About Us:

InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here:
► https://www.inmotionhosting.com​​​

#404Error #Custom404 #htaccess
Category
InMotion Hosting
Tags
404Error, Custom404, .htaccess
Be the first to comment