{"id":2229,"date":"2020-11-18T05:25:16","date_gmt":"2020-11-18T05:25:16","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2229"},"modified":"2024-07-18T04:55:43","modified_gmt":"2024-07-18T04:55:43","slug":"how-to-create-custom-404-page-in-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/","title":{"rendered":"How To Create Custom 404 Page in Apache"},"content":{"rendered":"\n<p>By default, when Apache server is unable to find a requested URL, it returns a &#8216;404:Page not found&#8217; error message. But this server response is not of much use since it does not tell users what they need to do next. Therefore, it is advisable to display a custom 404 page that is user-friendly. Did you know that Apache web server allows you to configure custom 404 error page for your website? Using <em>ErrorDocument<\/em> directive you can easily configure custom error page in Apache, without any coding. In this article, we will look at how to create custom 404 page in Apache. You can also use these steps to configure custom error pages for other error codes such as 403, 500, 502, etc.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 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:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#Why_Create_Custom_404_Page\" >Why Create Custom 404 Page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#How_To_Create_Custom_404_Page_in_Apache\" >How To Create Custom 404 Page in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#What_is_ErrorDocument_Directive\" >What is ErrorDocument Directive<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#1_Open_htaccess_file\" >1. Open .htaccess file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#2_Configure_404_Error_Page\" >2. Configure 404 Error Page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#3_Create_404_Error_page\" >3. Create 404 Error page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#4_Restart_Apache_Server\" >4. Restart Apache Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#5_Test_Custom_Page\" >5. Test Custom Page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#Useful_Tips\" >Useful Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Create_Custom_404_Page\"><\/span>Why Create Custom 404 Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Generally, when web servers cannot find a requested URL, they display a plain HTML page with a terse error message. It is different from other pages on your site and does not contain any of their visual elements. So it is not user-friendly and makes the visitors think that there is something wrong with your website. This spoils their user experience and forces them to leave abruptly. It also affects search engine rankings since these URLs return a page with thin content. Therefore, it is recommended to design your own custom 404 page that can be displayed in case of 404 error responses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Create_Custom_404_Page_in_Apache\"><\/span>How To Create Custom 404 Page in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here is how to create custom 404 page in Apache. For our purpose, we will use the <em>ErrorDocument<\/em> directive to setup custom 404 page. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_ErrorDocument_Directive\"><\/span>What is ErrorDocument Directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>ErrorDocument directive allows you to serve custom error messages that are user-friendly, according to your website&#8217;s branding and style. You can add <em>ErrorDocument<\/em> directive in .htaccess file, virtual host configuration file or your main server configuration file, as per your requirement. Here is its syntax.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ErrorDocument &lt;response_code> &lt;uri><\/pre>\n\n\n\n<p>Once you have setup this server directive, then when Apache encounters an error response 4xx or 5xx, it will internally redirect the visitor to the URI assigned to that response code, in ErrorDocument directive.<\/p>\n\n\n\n<p>In addition, you also get access to a set of environment variables such as REDIRECT_HTTP_ACCEPT, REDIRECT_HTTP_USER_AGENT, REDIRECT_URL that are automatically set using request header. They help you get the proper request context of original request. They can also be used to customize your response based on variable values.<\/p>\n\n\n\n<p>Now that we have a basic understanding of ErrorDocument directive, let us look at the steps to setup custom 404 page in Apache server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Open_htaccess_file\"><\/span>1. Open .htaccess file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You will typically find .htaccess file in your site&#8217;s root folder (e.g \/var\/www\/html\/). You can open it or create it using <a href=\"https:\/\/www.cs.colostate.edu\/helpdocs\/vi.html\" target=\"_blank\" rel=\"noreferrer noopener\">vi editor<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vim \/var\/www\/html\/.htaccess<\/pre>\n\n\n\n<p>If you have not setup .htaccess but have setup virtual hosts, then you can also open your virtual host configuration file (e.g \/etc\/apache2\/sites-enabled\/example.com for your domain example.com)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vim \/etc\/apache2\/sites-enabled\/example.com<\/pre>\n\n\n\n<p>Alternatively, you can also open the default virtual host configuration file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vim \/etc\/apache2\/sites-enabled\/000-default.com<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Configure_404_Error_Page\"><\/span>2. Configure 404 Error Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Add the following line to .htaccess file. Please note, if your website has multiple .htaccess files, place the following directive in the file located at the root location.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ErrorDocument 404 \/error404.html<\/pre>\n\n\n\n<p>In the above line, we specify the error response code 404 and the custom page error404.html to be served for it. You can also configure error pages for other response codes such as 500, 502, 403, etc.<\/p>\n\n\n\n<p>If you are using Virtual host file, add the above line inside <em>VirtualHost<\/em> tag<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost&gt;\n   ...\n   ErrorDocument 404 \/error404.html\n   ...\n&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p>Please note, if you place the above code in .htaccess or virtual host file, it will be applicable only for that specific website. If you place it in the main configuration file, then it will be applicable for all websites hosted on your server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Create_404_Error_page\"><\/span>3. Create 404 Error page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When Apache server encounters an ErrorDocument directive in response to an error, it looks for the custom error page in root folder \/var\/www\/html. In our example above, we have assumed that our error file <em>error404.html<\/em> is located at website root folder <em>\/var\/www\/html\/<\/em>. Create custom error file <em>error404.html<\/em> using text editor such as vi editor, or a page builder like Squarespace, WordPress, or Wix.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/var\/www\/html\/error404.html<\/pre>\n\n\n\n<p>The above page will be rendered as it is. So you can add any kind of HTML code in it. Here is a sample.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;h1 >Error 404&lt;\/h1><br>&lt;h2>PAGE NOT FOUND&lt;\/h2><br>&lt;p>Sorry, we're unable to find the requested page.&lt;\/p><br>&lt;p>Please click &lt;a href=\"\/\">here&lt;\/a> to go to our home page instead&lt;\/p><\/pre>\n\n\n\n<p>In the above page, we have displayed the response error code 404 along with the message saying that the page is not available. We have also instructed the user to click the link to our home page to proceed further. It is always good to mention a call to action (CTA) on these custom error pages. Otherwise, visitors get confused and leave your site. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Restart_Apache_Server\"><\/span>4. Restart Apache Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Restart Apache Server to apply changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Test_Custom_Page\"><\/span>5. Test Custom Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open web browser and request any URL that does not exist on your website. You should see the custom 404 page instead of Apache&#8217;s default message.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Useful_Tips\"><\/span>Useful Tips<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are a couple of important things to keep in mind while designing an error document.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make the web page look similar to other pages on your site. This means using the same logo, header, footer, css styles, and visual elements. This will give a sense of continuity to visitors.<\/li>\n\n\n\n<li>Display a clear call-to-action that tells visitors what they need to do next. It can be clicking a link, emailing administrator or making a call. Otherwise, they will leave your website.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Hopefully, this article will help you create custom 404 pages for your website. You can use these steps to configure custom pages for other error codes such as 500, 502, 403, etc. It is recommended to create separate error documents for each error response to avoid confusion. This will improve user experience and ensure that visitors do not leave your website unnecessarily.<\/p>\n\n\n\n<p><a href=\"https:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data, and monitor them in real-time dashboards.&nbsp;<a href=\"https:\/\/ubiq.co\/accounts\/register\">Try Ubiq<\/a>&nbsp;for free.<\/p>\n\n\n\n<p>Also read : <br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-debian\/\">How to Create Self-Signed Certificate for Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-use-apache-bench-for-load-testing\/\">How to Use Apache bench for Load Testing<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-index-php-from-url\/\">How to Remove index.php from URL<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-install-fail2ban-to-protect-apache-server\/\">How to Install Fail2ban in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.<\/p>\n","protected":false},"author":1,"featured_media":2245,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[229],"class_list":["post-2229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-custom-404-page"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Create Custom 404 Page in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create Custom 404 Page in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-18T05:25:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-18T04:55:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"910\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How To Create Custom 404 Page in Apache\",\"datePublished\":\"2020-11-18T05:25:16+00:00\",\"dateModified\":\"2024-07-18T04:55:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/\"},\"wordCount\":1004,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1\",\"keywords\":[\"custom 404 page\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/\",\"name\":\"How To Create Custom 404 Page in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1\",\"datePublished\":\"2020-11-18T05:25:16+00:00\",\"dateModified\":\"2024-07-18T04:55:43+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1\",\"width\":1300,\"height\":910,\"caption\":\"make custom 404 page\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-create-custom-404-page-in-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create Custom 404 Page in Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create Custom 404 Page in Apache - Ubiq BI","description":"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/","og_locale":"en_US","og_type":"article","og_title":"How To Create Custom 404 Page in Apache - Ubiq BI","og_description":"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-11-18T05:25:16+00:00","article_modified_time":"2024-07-18T04:55:43+00:00","og_image":[{"width":1300,"height":910,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How To Create Custom 404 Page in Apache","datePublished":"2020-11-18T05:25:16+00:00","dateModified":"2024-07-18T04:55:43+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/"},"wordCount":1004,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1","keywords":["custom 404 page"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/","name":"How To Create Custom 404 Page in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1","datePublished":"2020-11-18T05:25:16+00:00","dateModified":"2024-07-18T04:55:43+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Apache allows you to configure custom 404 error page for your website. Here is how to create custom 404 page in Apache for your website.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1","width":1300,"height":910,"caption":"make custom 404 page"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How To Create Custom 404 Page in Apache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/How-to-Make-a-Custom-404-Page.jpg?fit=1300%2C910&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-zX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=2229"}],"version-history":[{"count":32,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2229\/revisions"}],"predecessor-version":[{"id":3724,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2229\/revisions\/3724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2245"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}