View Full Version : index.htm vs. default.htm
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?
l0rdphi1
01-22-2004, 01:49 PM
Create a ".htaccess" file inside your public_html and put in it:
DirectoryIndex default.htm
ProWebUK
01-22-2004, 01:53 PM
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!
ProWebUK
01-22-2004, 02:00 PM
/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
ProWebUK
01-22-2004, 02:04 PM
(as a note- the httpd.conf soloution will be server-wide - affect all domains, .htaccess will only affect the individual domain)
Chris
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.