{"id":1525,"date":"2019-02-08T10:35:56","date_gmt":"2019-02-08T10:35:56","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583328-what-to-do-when-a-website-shows-index-of-at-hostinger\/"},"modified":"2026-03-16T12:12:17","modified_gmt":"2026-03-16T12:12:17","slug":"1583328-what-to-do-when-a-website-shows-index-of-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583328-what-to-do-when-a-website-shows-index-of-at-hostinger\/","title":{"rendered":"What to Do When a Website Shows &#8216;Index of \/&#8217; at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">To access any website, typically only the domain name is used, e.g. by entering <b>domain.tld <\/b>on the browser&rsquo;s address bar<b>,<\/b> and the index file loads by default. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If there is no <b>index.php<\/b> or <b>index.html<\/b> in the root folder (<b>\/public_html<\/b>) for the domain, an &ldquo;Index of \/&rdquo; message will appear, similar to this:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/faaf928c-0b52-4cc6-a506-e5a4d4c1971b.jpg\" alt=\"The Index of \/ page due to a missing or misnamed index file\"><\/div><p class=\"no-margin\">To fix it, the best solution is <b><a href=\"\/support\/2458059-how-to-create-a-website\" target=\"_blank\" class=\"intercom-content-link\">building a website<\/a><\/b>. If you already have a website or you want to simply hide this message, check the following options:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_3761032410\">Option 1 &ndash; Disable Directory Listing<\/h2><p class=\"no-margin\">If you don&rsquo;t want the content of the root folder to be displayed on your website, go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b> &rarr; <b>Manage<\/b> and search for<b> Folder Index Manager<\/b> on the left sidebar:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/62ef0a46-49e0-46ca-ab95-ad418d591a19.jpg\" alt=\"The Folder Index Manager menu option\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">On the directory field, enter the <b>public_html<\/b> folder. On indexing type, choose <b>No index<\/b> and click <b>Add:<\/b><\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/ce26e08c-3cd4-47d2-b953-b4e492eb4f6d.jpg\" alt=\"The Setup Indexing Type section in the Folder Index Manager \"><\/div><h2 id=\"h_03fa9ab71a\">Option 2 &ndash; Check the Index File<\/h2><p class=\"no-margin\">Go to the <b>public_html<\/b> folder of your domain via <b><a href=\"\/support\/4548688-basic-actions-in-file-manager\" target=\"_blank\" class=\"intercom-content-link\">File Manager<\/a> <\/b>and check that the index file name is written correctly. It can be either <b>index.html<\/b>,<b> index.htm<\/b>,<b> <\/b>or<b> index.php<\/b>.<b> <\/b>If none of these files exist, you can <b>create an empty index file<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/62e6ae0c-b67b-457e-9cf4-6c47f32691ad.jpg\" alt=\"The New file window of Hostinger hPanel's File Manager\" width=\"465\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Alternatives to fix the &#8220;Index of \/&#8221;  error on a website<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[180],"tags":[],"class_list":["post-1525","post","type-post","status-publish","format-standard","hentry","category-website-troubleshooting"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583328-what-to-do-when-a-website-shows-index-of-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583328-que-hacer-cuando-un-sitio-web-muestra-index-of-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583328-que-faire-lorsqu-un-site-web-affiche-index-of\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/1583328-ka-daryti-jei-svetaineje-matoma-index-of-klaida-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583328-o-que-fazer-quando-um-site-mostra-index-of-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1525"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1525\/revisions"}],"predecessor-version":[{"id":5369,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1525\/revisions\/5369"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}