The index file is a file that will be processed by web servers by default when opening your directory with the site.
The hosting servers use the following index file usage priority:
[1] — index.php
[2] — index.html
[3] — index.htm
To override the index file, you just need to add the following rule to the .htaccess file located [in the root directory of the site] :
DirectoryIndex FILE_NAME.extension
For example, if it is necessary that the home.php file be used by default, then it is necessary to add the rule:
DirectoryIndex home.php
For quick access to the .htaccess file and its editing, you can use [file manager]
All question categories