You can easily disable directory listing by opening your cPanel account and navigating to Indexes section:

Once there select the public_html folder and choose No indexing:

You can also upload an empty index.html or index.php file if you don’t want the content to be displayed on your website (while still disabling the list of directories). Alternatively, you can add a few lines of code to your .htaccess file defining which file should be meant for the first page of your website:

#Alternate default index page

DirectoryIndex MyAwesomePage.html

Make sure to rename MyAwesomePage.html to your index file name.

The best way to resolve empty page issues would be building a website! To find out the full guide on how to start your website on Hostinger, check out this article.


Did this answer your question?