Image for DirectoryIndex

DirectoryIndex

DirectoryIndex is a server setting that determines which file it automatically loads when a visitor accesses a website folder without specifying a specific file, like "index.html" or "index.php". For example, if you visit "example.com/about/", the server uses DirectoryIndex to decide which page to display first from that folder. It helps websites automatically show a default page, streamlining navigation and user experience. Administrators can customize this list to control which files are displayed by default when users visit different parts of the site.