How to change default file ?

Discussion in 'General' started by jjonsson, Dec 6, 2011.

  1. jjonsson

    jjonsson New Member

    When I install Wordpress on a website created/hosted by ISPconfig it default loads index.html.
    How can i change so that it loads other files as well, for instance index.php ?
     
  2. Ghostdare

    Ghostdare Member

    When you crate the domain automaticaly ISPConfig puts default files in it... if you want index.php to be loaded.... simply delete index.html

    I think that apache reads index file in some order html, etc ...
     
  3. cbj4074

    cbj4074 Member

    Ghostdare is correct in that the simplest course of action is to delete index.html.

    He's correct also in that Apache looks for index files in a particular order (index.html is the first, by default).

    The DirectoryIndex directive controls the order. You can either change this value server-wide (e.g., insert the new value into /etc/apache2/httpd.conf) or for individual sites via the ISPConfig interface (Sites -> example.com -> Options, Apache Directives box).

    An example would be to paste-in the following:

    Code:
    DirectoryIndex index.php index.shtml  index.html  index.htm
    
    Apache looks for the files in order from left to right.
     

Share This Page