{"id":1995,"date":"2023-10-10T10:50:29","date_gmt":"2023-10-10T10:50:29","guid":{"rendered":"https:\/\/hostingspell.com\/blog\/?p=1995"},"modified":"2023-10-10T10:54:05","modified_gmt":"2023-10-10T10:54:05","slug":"add-custom-404-error-page-in-cpanel","status":"publish","type":"post","link":"https:\/\/blog.hostingspell.com\/add-custom-404-error-page-in-cpanel\/","title":{"rendered":"Add Custom 404 Error Page in cPanel (OR any other error page)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To add a custom <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add a custom 400 (Bad request), 401 (Authorization required), 403 (Forbidden), 404 (Not found), or 500 (Internal server error) to your website hosted on cPanel, you can follow these steps:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to cPanel:<\/strong> Log in to your cPanel account using your username and password. You can usually access cPanel by going to <code>https:\/\/yourdomain.com\/cpanel<\/code> and entering your login credentials.<\/li>\n\n\n\n<li><strong>Navigate to the &#8220;Error Pages&#8221; Section:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In cPanel, look for the &#8220;Advanced&#8221; or &#8220;Advanced&#8221; section. The name may vary depending on your cPanel theme.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select &#8220;Error Pages&#8221;:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Inside the &#8220;Advanced&#8221; section, you should find an option called &#8220;Error Pages.&#8221; Click on it.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Choose the Domain:<\/strong>\n<ul class=\"wp-block-list\">\n<li>If you have multiple domains or subdomains hosted on your cPanel account, select the one for which you want to set up a custom 404 error page from the dropdown menu.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select &#8220;404 (Not Found)&#8221;:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Under the &#8220;Common Error Codes&#8221; section, you&#8217;ll typically find &#8220;404 (Not Found).&#8221; Click on it to set up a custom error page for 404 errors.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Edit the Error Page:<\/strong><ul><li>You&#8217;ll be taken to a page where you can customize the 404 error page. You can either:<ul><li>Edit the HTML directly in the provided text box.<\/li><li>Upload a custom HTML file that serves as your 404 error page.<\/li><\/ul><\/li><\/ul>Choose the option that suits you best.<\/li>\n\n\n\n<li><strong>Save Changes:<\/strong>\n<ul class=\"wp-block-list\">\n<li>After customizing your 404 error page, make sure to save your changes. Look for a &#8220;Save&#8221; or &#8220;Save Changes&#8221; button on the page.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Test the Custom 404 Page:<\/strong>\n<ul class=\"wp-block-list\">\n<li>To ensure that your custom 404 error page is working correctly, try accessing a non-existent page on your website (e.g., <code>https:\/\/yourdomain.com\/nonexistentpage<\/code>) in a web browser. You should see your custom 404 error page displayed.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! You&#8217;ve successfully added a custom 404 error page to your website hosted on cPanel. Visitors who encounter a &#8220;Page Not Found&#8221; error will now see your custom error page with your chosen content and design.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add a custom To add a custom 400 (Bad request), 401 (Authorization required), 403 (Forbidden), 404 (Not found), or 500 (Internal server error) to your website hosted on cPanel, you can follow these steps: That&#8217;s it! You&#8217;ve successfully added a custom 404 error page to your website hosted on cPanel. Visitors who encounter a [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":1647,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1995","post","type-post","status-publish","format-standard","has-post-thumbnail","category-general","entry"],"featured_image_src":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png","featured_image_src_square":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png","author_info":{"display_name":"C01R3","author_link":"https:\/\/blog.hostingspell.com\/author\/c01r3\/"},"uagb_featured_image_src":{"full":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"thumbnail":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-150x150.png",150,150,true],"medium":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-300x150.png",300,150,true],"medium_large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"1536x1536":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"2048x2048":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"single-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"blog-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"home-featured":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-380x290.png",380,290,true],"ab-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"ab-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"author-pro-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",360,180,false],"gb-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"gb-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false]},"uagb_author_info":{"display_name":"C01R3","author_link":"https:\/\/blog.hostingspell.com\/author\/c01r3\/"},"uagb_comment_info":0,"uagb_excerpt":"To add a custom To add a custom 400 (Bad request), 401 (Authorization required), 403 (Forbidden), 404 (Not found), or 500 (Internal server error) to your website hosted on cPanel, you can follow these steps: That&#8217;s it! You&#8217;ve successfully added a custom 404 error page to your website hosted on cPanel. Visitors who encounter a&hellip;","_links":{"self":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/comments?post=1995"}],"version-history":[{"count":3,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1995\/revisions"}],"predecessor-version":[{"id":2000,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1995\/revisions\/2000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media\/1647"}],"wp:attachment":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media?parent=1995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/categories?post=1995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/tags?post=1995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}