PDA

View Full Version : File priority



igrump
12-21-2007, 12:48 PM
On a previous host, I was able to have two files, "index.htm" and "index.php" within the public_html directory. The server would send index.htm and on that page I had a link to index.php (which was the wiki server page). This is working well for me (see http://aodwiki.org to watch it work). I'm trying to test this arrangement on my new hostmonster site, but its not working. The host is giving priority to index.php.

Is there a way to set this priority, or alternatively is there a file name that will supersede index.php?

Thanks

Jim

PlanetX
12-21-2007, 09:01 PM
Hey Jim, you can specify the default page using the .htaccess file in the main directory. Add this line to the existing .htaccess file

DirectoryIndex index.html

(or htm instead of html)

igrump
12-21-2007, 11:50 PM
Thanks. Worked like a charm.