Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Northern Ireland

    File extension preferences

    I have a dedicated server with Hostgator, and a client now requires to be able to have index.htm accessed in preference to index.php, I cannot see where on earth to set this - either in WHM or the users specific CPanel (I am assuming its a server level change anyway).

    Advice and suggestions appreciated.

  2. #2
    Join Date
    Jun 2004
    Bay Area
    Create an .htaccess file in that webspace (root), with the following body:

    DirectoryIndex index.htm index.php index.html

    That should be it

  3. #3
    You may also edit /usr/local/apache/conf/httpd.conf with this

    <IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.shtml index.php

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts