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.htmlThen a request forhttp://myserver/docs/would returnhttp://myserver/docs/index.htmlif 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.
Did you find this article helpful?