How do I display directories correctly?


Nov 21, 2013
cPanel Access Level
Website Owner
Hi, I'm new to the forums, so please pardon me if I unknowingly posted this in the wrong part of the forum.
So, here's the problem:
I'm not very sure how the directory system for cPanel works, but when I use my website, I want for example,
ie. You want to visit help.html. You should be able to just type, but instead, it shows the NOT

So, I've did a bit of searching and I've found that people have been claiming that opening the name of a directory opens the index.html in that directory by default:
ie. You want to visit help.html. You should be able to just type, but instead it shows rather than OR

On top of that, I've have a few file-only directories, which on default (before I placed any .html documents onto it) when I typed the website, it listed the contents of .../public_html, but now it doesn't. Everything now just displays .../public_html/index.html or

My question is: How do I do that?
as I want to make certain directories list their index.html (or redirect to another file ie. goes to rather than when it is typed while others simply list their contents?


Staff member
Apr 11, 2011
Hello :)

You can modify the default DirectyIndex value by placing a line in the .htaccess file of the directory you want to modify it for. EX:

DirectoryIndex help.html index.html index.php
The above example would ensure that the "help.html" file will load when the directory is accessed.

Thank you.