lucy24 - 5:31 pm on Nov 5, 2012 (gmt 0)
But I need the Wordpress site to function as it is, but, both index.htm and index.php need to function separately, with the index.htm taking preference for the root URL.
Do you have a DirectoryIndex directive of your own? Generally on shared hosting you don't need one, because the server's config file has a generic version, and a normal directory won't have more than one index file. But here it is probably safer to have an explicit
DirectoryIndex index.htm index.php
Both versions work exactly the same. I think the one-line version is more intuitive. (And takes up fewer bytes ;))
The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name.... Several URLs may be given, in which case the server will return the first one that it finds.
Note carefully that Apache will stop at the first listed name that it finds; later names don't override earlier ones. So start with the form you want users to get if they simply request www.example.com.
If you want to look it up for yourself, note also that Apache's example shows it inside a <Directory> envelope. Do not use this envelope in htaccess. Ever. It isn't just unnecessary; it's an error.