{"id":4905,"date":"2008-03-14T14:14:10","date_gmt":"2008-03-14T11:14:10","guid":{"rendered":"http:\/\/help.superhosting.bg\/?p=4905"},"modified":"2022-03-18T00:50:30","modified_gmt":"2022-03-17T21:50:30","slug":"personal-error-pages","status":"publish","type":"ht_kb","link":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html","title":{"rendered":"Error Pages in cPanel"},"content":{"rendered":"<p>Upon new hosting account activation the public_html directory contains the <strong>401.shtml<\/strong>, <strong>403.shtml<\/strong>, <strong>404.shtml<\/strong>, <strong>500.shtml<\/strong> files.<\/p>\n<p>These are the most common error pages which the web server uses upon generating some of the 401, 403, 404, 500 status codes.<\/p>\n<p>The .shtml files are ordinary HTML files containing <a title=\"SSI - Dynamic Content Generation for HTML Pages | Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/ssi.html\">SSI tags<\/a>. These tags are processed by the web server and the result is embedded into the page before it is sent to the web browser.<\/p>\n<h4 class=\"h4-gray01\">Enabling .shtml files<\/h4>\n<p>If you would like a certain error message to use the respective .shtml file in the .htaccess file, located in the same directory, you need to place the respective directive. If you want the 404 message to load the <strong>\/404.shtml<\/strong> file, located in the website directory, you need to use:<\/p>\n<pre><code class=\"language-apacheconf\">ErrorDocument 404 \/404.shtml<\/code><\/pre>\n<p>The <a title=\"\" href=\"https:\/\/httpd.apache.org\/docs\/2.4\/custom-error.html\" target=\"_blank\" rel=\"noopener noreferrer\">ErrorDocument<\/a> directive points the web server to load the specified <strong>404.shtml<\/strong> file in case of a <strong>404 Not Found<\/strong> status code.<\/p>\n<div class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>Important<\/strong>: Processing some of the status codes and displaying the respective error message might be performed by the website&#8217;s system. For example in WordPress the 404 Not Found message is processed by the PHP system itself (when the .htaccess already contains the rules for permanent URLs). Therefore changing the system 404.shtml file will not affect the error message, displayed on the website. In such case, you can edit the 404 message in WordPress from the 404.php template, usually located in the theme&#8217;s directory.<\/div>\n<h4 class=\"h4-gray01\">Editing Error Pages (.shtml)<\/h4>\n<p>System error messages might be directly edited through the File Manager&#8217;s editor or the <strong>Error Pages<\/strong> menu in cPanel.<\/p>\n<p>After you select the domain you will see the most common error messages in the list below.<\/p>\n<p>Besides the enlisted choices you can also edit messages for other status codes such as 408, 502, 503 and others.<\/p>\n<p>To edit a message, click on it. A code editor will open as you will see the existing content of this system message.<\/p>\n<p>It might contain an HTML code as well as the special system <a title=\"SSI - Dynamic Content Generation for HTML Pages | Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/ssi.html\">SSI tags<\/a> used to generate dynamic data such as server name, request URL, visitor&#8217;s IP and others. E.g. <strong>404.shtml<\/strong> contains:<\/p>\n<pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;&lt;head&gt;\n&lt;title&gt;404 Not Found&lt;\/title&gt;\n&lt;\/head&gt;&lt;body&gt;\n&lt;h1&gt;Not Found&lt;\/h1&gt;\n&lt;\/p&gt;The requested URL &lt;!--#echo var=\"REQUEST_URI\" --&gt; was not found on this server.&lt;\/p&gt;\n&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre>\n<p class=\"replacetext2-info\"><strong>&lt;!&#8211;#echo var=&#8221;REQUEST_URI&#8221; &#8211;&gt; <\/strong>is an SSI tag that will be replaced with the URL requested by the web client.<\/p>\n<p>A few examples for SSI tags which might be included into an error message:<\/p>\n<p>Referring URL<\/p>\n<pre><code class=\"language-html\">&lt;!--#echo var=\"HTTP_REFERER\" --&gt;<\/code><\/pre>\n<p>Visitor&#8217;s IP<\/p>\n<pre><code class=\"language-html\">&lt;!--#echo var=\"REMOTE_ADDR\" --&gt;<\/code><\/pre>\n<p>Request URL<\/p>\n<pre><code class=\"language-html\">&lt;!--#echo var=\"REQUEST_URI\" --&gt;<\/code><\/pre>\n<p>Server name<\/p>\n<pre><code class=\"language-html\">&lt;!--#echo var=\"HTTP_HOST\" --&gt;<\/code><\/pre>\n<p>Visitor&#8217;s browser<\/p>\n<pre><code class=\"language-html\">&lt;!--#echo var=\"HTTP_USER_AGENT\" --&gt;<\/code><\/pre>\n<div class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>Important<\/strong>: Editing .shtml files through cPanel \u00bb Error Pages does not activate them on the website (which means directives are not added to the .htaccess file).<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"no","footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-4905","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"SuperHosting.BG\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\n\t\t<link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\">\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Error Pages in cPanel | KnowledgeBase\" \/>\n\t\t<meta property=\"og:description\" content=\"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-03-14T11:14:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-03-17T21:50:30+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/superhosting\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@superhostingbg\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Error Pages in cPanel | KnowledgeBase\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@superhostingbg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"position\":1,\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#listItem\",\"name\":\"Error Pages in cPanel\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#listItem\",\"position\":2,\"name\":\"Error Pages in cPanel\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\",\"name\":\"SuperHosting.BG\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/SH-LogotypeEN-ScreenOrange-Three-800-01.png\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html\\\/#organizationLogo\",\"width\":800,\"height\":436},\"image\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/superhosting\",\"https:\\\/\\\/www.twitter.com\\\/superhostingbg\",\"https:\\\/\\\/www.instagram.com\\\/superhosting.bg\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SuperHostingBg\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/superhosting-bg\\\/\",\"https:\\\/\\\/soundcloud.com\\\/user-391462588-865926075\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh\",\"name\":\"SuperHosting.BG\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SuperHosting.BG\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#webpage\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html\",\"name\":\"Error Pages in cPanel | KnowledgeBase\",\"description\":\"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/personal-error-pages.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"datePublished\":\"2008-03-14T14:14:10+03:00\",\"dateModified\":\"2022-03-18T00:50:30+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"name\":\"\\u041f\\u043e\\u043c\\u043e\\u0449\\u043d\\u0430 \\u0441\\u0442\\u0440\\u0430\\u043d\\u0438\\u0446\\u0430\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Error Pages in cPanel | KnowledgeBase","description":"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.","canonical_url":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":"&lt;link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\"&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","position":1,"name":"\u041d\u0430\u0447\u0430\u043b\u043e","item":"https:\/\/help.superhosting.bg\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#listItem","name":"Error Pages in cPanel"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#listItem","position":2,"name":"Error Pages in cPanel","previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","name":"\u041d\u0430\u0447\u0430\u043b\u043e"}}]},{"@type":"Organization","@id":"https:\/\/help.superhosting.bg\/en\/#organization","name":"SuperHosting.BG","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","url":"https:\/\/help.superhosting.bg\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/help.superhosting.bg\/wp-content\/uploads\/2021\/01\/SH-LogotypeEN-ScreenOrange-Three-800-01.png","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html\/#organizationLogo","width":800,"height":436},"image":{"@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/superhosting","https:\/\/www.twitter.com\/superhostingbg","https:\/\/www.instagram.com\/superhosting.bg","https:\/\/www.youtube.com\/user\/SuperHostingBg","https:\/\/www.linkedin.com\/company\/superhosting-bg\/","https:\/\/soundcloud.com\/user-391462588-865926075"]},{"@type":"Person","@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author","url":"https:\/\/help.superhosting.bg\/en\/author\/authorsh","name":"SuperHosting.BG","image":{"@type":"ImageObject","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g","width":96,"height":96,"caption":"SuperHosting.BG"}},{"@type":"WebPage","@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#webpage","url":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html","name":"Error Pages in cPanel | KnowledgeBase","description":"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/help.superhosting.bg\/en\/#website"},"breadcrumb":{"@id":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html#breadcrumblist"},"author":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"creator":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"datePublished":"2008-03-14T14:14:10+03:00","dateModified":"2022-03-18T00:50:30+03:00"},{"@type":"WebSite","@id":"https:\/\/help.superhosting.bg\/en\/#website","url":"https:\/\/help.superhosting.bg\/en\/","name":"\u041f\u043e\u043c\u043e\u0449\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","inLanguage":"en-US","publisher":{"@id":"https:\/\/help.superhosting.bg\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","og:type":"article","og:title":"Error Pages in cPanel | KnowledgeBase","og:description":"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.","og:url":"https:\/\/help.superhosting.bg\/en\/personal-error-pages.html","article:published_time":"2008-03-14T11:14:10+00:00","article:modified_time":"2022-03-17T21:50:30+00:00","article:publisher":"https:\/\/www.facebook.com\/superhosting","twitter:card":"summary","twitter:site":"@superhostingbg","twitter:title":"Error Pages in cPanel | KnowledgeBase","twitter:description":"Upon new hosting account activation the public_html directory contains the 401.shtml, 403.shtml, 404.shtml, 500.shtml files.","twitter:creator":"@superhostingbg"},"aioseo_meta_data":{"post_id":"4905","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":{"id":"aioseo-web-page-6346194129375","slug":"web-page","graphName":"WebPage","label":"Web Page","properties":{"type":"WebPage","name":"","description":""}}},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":0,"ai":null,"created":"2021-01-28 14:01:45","updated":"2022-10-12 01:32:49","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/4905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=4905"}],"version-history":[{"count":2,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/4905\/revisions"}],"predecessor-version":[{"id":31509,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/4905\/revisions\/31509"}],"wp:attachment":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=4905"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-category?post=4905"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=4905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}