index.htm vs. default.htm

CCSI

Verified User
Joined
Nov 7, 2003
Messages
53
Question:

I have a client that has created a website via FrontPage. Their main page is called default.htm instead of index.htm.

They have references back to "default.htm", or I would just have them change the name of the file to index.htm

I was using Ensim Webplliance PRO for Windows before I switched over to DA and Linux. There was a choice of default vs. index as your main start page.

Any ideas?
 
Create a ".htaccess" file inside your public_html and put in it:
Code:
DirectoryIndex default.htm
 
Check your main httpd.conf for the DirectoryIndex directive

All you need to do is add default.htm somewhere there....

DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.php4 default.htm index.pl index.jsp

Would be fine, also note that apache checks for all them files in the order they are placed under that directive, for example if you had both index.html and index.htm in your directory the index file that would be used is index.html (based on the example above( since index.html is specified before index.htm

Chris
 
Chris,

I did a locate and found multiple instances of the file. More info please!
 
/etc/httpd/conf/httpd.conf

also restart apache once your done for the chnages to take effect

Chris
 
l0rdphi1,

Tried your fix... works fine!

Thanks!

Chris,

Still would like to know more about the other fix!

Thanks

David
 
(as a note- the httpd.conf soloution will be server-wide - affect all domains, .htaccess will only affect the individual domain)

Chris
 
Back
Top