2.12.12. Overriding the default page

By default, when accessing the main page of the site, the server looks in root directory of the site file index.php... If there is no such file, then a search is performed index.html or index.htm... If none of the listed files are present, the server returns error 403.

If the main site file has a different name, for example home.php insteadof index.phpthen in this case you can:

  • Or rename this file to index.php.
  • Either in root directory of the site create file .htaccess with the following directive (if the file already exists, the directive must be added to it):
    DirectoryIndex home.php

    You can create and edit this file with filemanager or any FTPclient.