tech1984
asked on
Default index extension in Plesk
I need to change the order of default page extension that loads on a domain administered with Plesk 9.2.3.
I am running apache for my web server, is there a setting in plesk to change this or do I need to modify the apache ini file.
Example:
If the root directory has both index.htm and index.php the index.php page loads. I need the default to be index.htm not index.php.
I am running apache for my web server, is there a setting in plesk to change this or do I need to modify the apache ini file.
Example:
If the root directory has both index.htm and index.php the index.php page loads. I need the default to be index.htm not index.php.
ASKER
Can this be done with an htaccess file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open your Apache configuration file httpd.conf
# vi httpd.conf
Find out line that read as follows:
DirectoryIndex
Now set it as per your requirements:
DirectoryIndex index.html index.htm default.htm index.php index.pl
Save and close the file. Restart the Apache webs server:
# /etc/init.d/httpd restart