A directory index file is the default page the server will display to the
browser when no page is defined in the URL.
You can have more than one index file in each directory; the server will
decide which index file to display based on the order listed in the default
server configuration. You can find the order listed in this article here.
In some cases, your application may use a default page that is not already
pre-configured in the default document list on the server. If this is the case,
then you will need to tell the server what page is your index page using the
following methods:
Specifying
the default page for Unix hosting
- Create a .htaccess file with a text editor and the following lines to
specify the default page:
- Save and upload the .htaccess file to the document root of your site or to
any folders where you need to change the default document that is loaded when
the folder is accessed.
Specifying
the default page for Windows hosting
- Login to the Plesk Server Administrator.
- Select the domain name you wish to modify
- Click on the Web Directories button.
- Click on the Preferences icon
- Type in your default document filename into the 'Default documents search
order' box and click Add
- Find the added document a the bottom of the list and click the Up
button to move your document to the highest preference in the list.
- Click OK to save changes
|