PDA

View Full Version : How to set default home page back to index.html?



mrhines1
April 4th, 2008, 08:11 AM
I occasionally do some web design work on the side but there are usually long periods of time in between and I tend to forget some things.

I just finished an update for a site and have it all uploaded. When I originally created the site a few years ago I set it up to have "index.php" be the default home page. But now I want the default to be "index.html". The problem is, I forgot how I originally changed it and so I'm at a loss as to how to change it back.

I've looked through the folders on my server for a .htaccess file thinking I may have done it that way, but I'm not seeing it. I'm using mediatemple.net as my host if that would help your answer at all.

Any ideas?

Thanks!

Jeff Wheeler
April 4th, 2008, 08:24 AM
Usually you don't change anything. It searches for a few in order, usually something like index.php, index.html, index.htm, and then (sometimes) default.html and default.htm (usually, in that order).

So, just delete or rename index.php and it should find index.html instead. :)

borrob
April 4th, 2008, 09:47 AM
if you want or have to and can

in the file httpd.conf in apache/conf
change:
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>