DirectoryIndex
The DirectoryIndex is the file that appears first when you specify a Web site or directory without a
file name. For example, when a Website is displayed on your account, the DirectoryIndex page is
index.shtml, followed by index.htm, index.html. default.htm and default.html.
To change the order or add a different file name:
- Using your favorite text editor, create a file and name it:
.htaccess
- Add the following line to the .htaccess file:
DirectoryIndex index.htm index.html default.htm default.html
Note: Replace file_name with the name of the file you
want displayed first. You also can add additional directories by adding that directory
and file name after file_name.
- Upload the file to the html document folder of your FreeBSD Basic account:
/webdocs/.htaccess
|
|