Can this be done with an htaccess file?
Main Topics
Browse All TopicsI 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.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Changing the Apache conf server-wide could be the way to got, but I'm also concerned with Plesk overwriting the Apache conf. I guess that directive can be applied on a per-site basis through an .htaccess file though, in which case you could try adding it to the default site skeleton used by Plesk when installing a Vhost. For existing VH you could add such a file in each / httpdocs directory too I guess provided you detect first if there is such a file not to overwrite a client's file.
I don't have a Plesk server at hand on which I can try that for you, sorry !
Business Accounts
Answer for Membership
by: hmtwinsPosted on 2009-10-24 at 13:56:01ID: 25654308
Plesk is a add on tool. I would try changing the apache order (Make backups before you change anyting)
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