{"id":2540,"date":"2014-10-31T09:58:50","date_gmt":"2014-10-31T09:58:50","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=2540"},"modified":"2017-09-21T10:23:02","modified_gmt":"2017-09-21T10:23:02","slug":"404-error-pages-what-are-they-and-how-to-create-them","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/","title":{"rendered":"404 Error Pages: What are they and how to create them?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_77 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#What_is_404_Error_Page_how_to_create\" >What is 404 Error Page &amp; how to create?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#Once_you_have_the_htaccess_file_created_and_edited_by_adding_a_line_like_the_following\" >Once you have the .htaccess file created and edited by adding a line like the following:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_404_Error_Page_how_to_create\"><\/span>What is 404 Error Page &amp; how to create?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2541\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages.jpg\" alt=\"404-error-pages\" width=\"675\" height=\"242\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages.jpg 675w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages-300x107.jpg 300w\" sizes=\"(max-width: 675px) 100vw, 675px\" \/><\/a>All we have seen. You&#8217;re navigating a website and you click a link, but the page does not load other than a few words of &#8220;404&#8221; and some additional information.<\/p>\n<p>So, what is a 404 page? It basically tells you that the server cannot find the website page you&#8217;re looking for. However, instead of using the 404 error page by default, you can create one. Here&#8217;s how it&#8217;s done.<\/p>\n<p>First, you need your .htaccess file that should be in the directory of your Web server where you have hosted your pages. If you cannot find, you have to create one. You&#8217;ll probably have to contact your hosting support to ask them how to create it or edit it. You might want to use a text editor and then upload it to the server, or create and edit directly from the server tool they use.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Once_you_have_the_htaccess_file_created_and_edited_by_adding_a_line_like_the_following\"><\/span><strong>Once you have the .htaccess file created and edited by adding a line like the following:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>ErrorDocument 404 https:\/\/www.esds.co.in\/404page.php<\/em><\/p>\n<p>Now that the line in the .htaccess file points to the error page we create. This is just an HTML document. Once you&#8217;ve created, save it and call 404page.php or html as per url structure. The next step is to upload the .htaccess file to the server and the error page.<\/p>\n<p>Once you are located in the corresponding directory we have to get it going. We do this by changing the attributes CHMOD to 644. You can do through a Telnet or FTP program of your choice. If you connect via Telnet and do it via command, you must type the following:<\/p>\n<p><em>chmod 644 .htaccess<\/em><\/p>\n<p>Now you must try if it works. Simply type your domain in the browser points to a page that does not exist, and you should see the 404 error page. If not, make sure the CHMOD is configured correctly, and if you still have problems, your Web hosting company can surely help you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is 404 Error Page &amp; how to create? All we have seen. You&#8217;re navigating a website and you click a link, but the page does not load other than a few words of &#8220;404&#8221; and some additional information. So, what is a 404 page? It basically tells you that the server cannot find the&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,624],"tags":[727,632,728,268],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>404 Error Pages: What are they and how to create them?<\/title>\n<meta name=\"description\" content=\"KB explaining 404 error pages and procedure to create them and add them on server, including information on its usefulness and etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"404 Error Pages: What are they and how to create them?\" \/>\n<meta property=\"og:description\" content=\"KB explaining 404 error pages and procedure to create them and add them on server, including information on its usefulness and etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-31T09:58:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-21T10:23:02+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/10\/404-error-pages.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\",\"name\":\"404 Error Pages: What are they and how to create them?\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#primaryimage\"},\"datePublished\":\"2014-10-31T09:58:50+00:00\",\"dateModified\":\"2017-09-21T10:23:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\"},\"description\":\"KB explaining 404 error pages and procedure to create them and add them on server, including information on its usefulness and etc.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/404-error-pages-what-are-they-and-how-to-create-them\/\",\"name\":\"404 Error Pages: What are they and how to create them?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\",\"name\":\"ESDS ADMIN\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5618393df3c15e5b6b3b9ef917e83827?s=96&d=mm&r=g\",\"caption\":\"ESDS ADMIN\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2540"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=2540"}],"version-history":[{"count":3,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2540\/revisions"}],"predecessor-version":[{"id":3342,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2540\/revisions\/3342"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=2540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=2540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=2540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}