How do I specify a custom index page?

Andrew Porter
Published: 6 April 2020
Share:

By default, the following are seen as default index pages on our Linux Web Hosting platform:

  • index.php
  • index.html
  • index.htm
  • index.cgi
  • index.rb
  • index.py

Should you wish to specify a different/specific filename as your index page, you can do this with DirectoryIndex.

Add the following in the .htaccess file, within the directory you are serving/intend to serve site content from:

DirectoryIndex file.php

file.php should be replaced with the name of the file you wish to make default.