What to do when a website shows ‘Index of /’ at Hostinger

Fix the “Index of /” page at Hostinger by building a website, disabling directory listing with Folder Index Manager, or adding an index file.

Updated 4 weeks ago

A website at Hostinger shows an “Index of /” listing when its root folder (public_html) has no index.php or index.html file. To fix it, build a website, disable directory listing with Folder Index Manager, or add an index file. The listing looks similar to this:

Hostinger website directory listing page showing “Index of /” with Name, Last Modified, and Size columns

To fix it, the best solution is building a website. If you already have a website or you want to simply hide this message, check the following options:

Option 1 – Disable directory listing

If you don’t want the content of the root folder to be displayed on your website, go to Websites → Manage site, and search for Folder Index Manager on the left sidebar:

Hostinger dashboard sidebar with Folder Index Manager highlighted under Advanced

On the directory field, enter the public_html folder. On indexing type, choose No index and click Add:

Hostinger setup indexing type dialog with public_html folder and No index selected

Option 2 – Check the index file

Go to the public_html folder of your domain via File Manager and check that the index file name is written correctly. It can be either index.html, index.htm, or index.php. If none of these files exist, you can create an empty index file:

Your domain now loads your website, or a blank page, instead of the “Index of /” listing. If the listing still appears, clear your browser cache or open the website in an incognito window to check the latest version. To add your website files, see how to upload backups with File Manager in Hostinger. For other errors your website may show, see How to identify and fix website errors at Hostinger.