Knowledge Base
Categories: cPanel/WHM/Linux
The DirectoryIndex directive sets the list of resources to look for
Log into the domain you want to change the default file on (Use the File Manager in cPanel or via SSH). Locate the .htaccess file and add this line at the top:
DirectoryIndex <filename.extension> ExampleDirectoryIndex index.html
Then a request forhttp://myserver/docs/
would returnhttp://myserver/docs/index.html
if it exists, or would list the directory if it did not.
This is now your default file.
More info on this directive can be found on the Apache Documentation page.
* Your feedback is too short