{"id":38212,"date":"2014-12-12T11:53:50","date_gmt":"2014-12-12T16:53:50","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=38212"},"modified":"2014-12-12T11:53:50","modified_gmt":"2014-12-12T16:53:50","slug":"js-animated-how-to-integrate-custom-404-error-page","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/js-animated-how-to-integrate-custom-404-error-page.html","title":{"rendered":"JS Animated. How to integrate custom 404 error page"},"content":{"rendered":"<p>This tutorial shows how to create a custom 404 page for your HTML website<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=2zdTTQu60PE?width=1280&amp;height=720\" rel=\"prettyPhoto\">JS Animated. How to integrate custom 404 error page<\/a>\r\n<ol>\r\n<li><p><strong>Create the Custom 404 page<\/strong>:\r\n  <\/p>\r\n  <p>Create a file called <strong>404.html<\/strong> (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 <a href=\"http:\/\/www.webweaver.nu\/html-tips\/useful-404.shtml\" target=\"_blank\" rel=\"nofollow\">useful 404 error page.<\/a><\/p>\r\n  <p>In our case <strong>404.html page<\/strong> has been already created:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-1-300x171.jpg\" alt=\"How_To_Create_a_Custom_404_Page-1\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-38213\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-1-300x171.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-1-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-1.jpg 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  \r\n  <p class=\"info-box\">Note that 404 page is included in the HTML5 and Bootstrap Template packages.<\/p>\r\n  \r\n  <\/li>\r\n  <li>\r\n    <p><strong>Create the .htaccess<\/strong>:<\/p>\r\n\t<p>Open your <strong>.htaccess<\/strong> file if you already have one. If not, then open notepad or your favorite text editor (a WYSIWYG editor won&#8217;t work here) and add this line:<\/p>\r\n\t<p><strong>ErrorDocument 404 \/404.html <\/strong><\/p>\r\n\t<p>You can name your error file whatever you&#8217;d like and use any extension you are most comfortable with, however, DO NOT use an absolute (full URL including the domain name) here:<\/p>\r\n\t\r\n\t<a href=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-2-300x171.jpg\" alt=\"How_To_Create_a_Custom_404_Page-2\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-38214\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-2-300x171.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-2-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-2.jpg 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n  <li><p><strong>Upload:<\/strong><\/p>\r\n    <p>Make sure your FTP program is set to <strong>upload in ASCII mode<\/strong>, upload the 404.php, then the .htaccess: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-3-300x104.jpg\" alt=\"How_To_Create_a_Custom_404_Page-3\" width=\"300\" height=\"104\" class=\"aligncenter size-medium wp-image-38215\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-3-300x104.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-3-150x52.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-3.jpg 720w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n  <li>\r\n    <p>Make sure your browser cache is cleared and type in a file that doesn&#8217;t exist on your server. Something like http:\/\/www.example.com\/oops. You will see your new 404 page:<\/p>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4-300x145.jpg\" alt=\"How_To_Create_a_Custom_404_Page-4\" width=\"300\" height=\"145\" class=\"aligncenter size-medium wp-image-38216\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4-300x145.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4-150x72.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4-1024x496.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/How_To_Create_a_Custom_404_Page-4.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t <\/li>\r\n    <li>\r\n    <p> <strong>Notes About a Custom Error Page<\/strong><\/p>\r\n\t<p>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&#8217;t available and create a nicely designed page with links to other areas or even a search to let them find what they wanted. <\/p>\r\n\t<\/li>\r\n\t<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=2zdTTQu60PE?width=1280&amp;height=720\" rel=\"prettyPhoto\">JS Animated. How to integrate custom 404 error page<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to Create a Custom 404 page for your HTML website.<\/p>\n","protected":false},"author":60,"featured_media":41242,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1016],"tags":[945,789,691,2411,572],"class_list":["post-38212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-js-animated-tutorials","tag-945","tag-custom","tag-error","tag-html","tag-page"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=38212"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38212\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/41242"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=38212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=38212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=38212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}