Frequently Asked Questions • Dev
What is DirectoryIndex?
Find out what DirectoryIndex is and how it configures the indexing of web pages on Apache servers, offering options for users and default settings.
Views 504Updated 6 aniPublished on 16/01/2019by Florin Petran
The DirectoryIndex directive sets the resources to be searched when a user requests an index, that is, accesses a web page.
The display of a directory's Index can be done in two ways:
- By setting the index file by the user using the DirectoryIndex directive (in the .htaccess file, the line DirectoryIndex desiredfileasindex.html is added)
- The index will be taken from the preset values in the web server
Note: This directive is valid for the Apache web server. On other web servers, the functionality will be different.