How do I set a my own default index file when browsing to a directory?

  • January 22, 2024
  • 0 Comments

To do this, create a file called "".htaccess"" in the directory with the following contents:
DirectoryIndex myindex.html index.html index.htm index.php

Where myindex.html is the name of the file that you want to serve as the default index page for the directory.

How helpful was this article to you?

Posting has been disabled.