Results 1 to 6 of 6
  1. #1

    Exclamation order of index files

    if we type:

    http://www.mydomain.com/mydirectory/

    in UNIX server, index file will be loaded.

    my Q is: what is type (file extension) order of index files loaded?

    I guess, order is:

    1)index.htm
    2)index.html
    3)index.php
    4)index.asp
    5)....

    do you know right order?
    please reply.
    Most websites contain errors except they are analyzed by a good program.
    Hyper Care is the best software for the purpose, which can find missed links, TAG and script errors automatically and easily, you can edit all website errors online.
    To download - this version checks html files only.

  2. #2
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    Depends on how apache is setup, on my machines I use:

    index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi

    however you can change this with a .htaccess file.

    In the .htaccess file place the following:

    Code:
    DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
    and edit as you see fit.
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  3. #3
    Hi,
    thx.
    is code inside .htaccess case-sensitive?

    must it be "DirectoryIndex ...", I like all in lowercase if possible.
    Most websites contain errors except they are analyzed by a good program.
    Hyper Care is the best software for the purpose, which can find missed links, TAG and script errors automatically and easily, you can edit all website errors online.
    To download - this version checks html files only.

  4. #4
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    Not sure if it is case sensitive or not off the top of my head, try it and find out
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  5. #5
    Join Date
    Feb 2006
    Posts
    71
    Quote Originally Posted by justadollarhostin
    Depends on how apache is setup, on my machines I use:

    index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi

    however you can change this with a .htaccess file.

    In the .htaccess file place the following:

    Code:
    DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
    and edit as you see fit.
    Where should this go?? I see that it should go in .htaccess, but the one inside of public_html?? or the one inside of /home/user/ >> my root??

  6. #6
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    Quote Originally Posted by compjab
    Where should this go?? I see that it should go in .htaccess, but the one inside of public_html?? or the one inside of /home/user/ >> my root??
    It would go in the root directory of whatever you wanted to make the change for. If it was your main site that is most likely public_html, but if you just wanted to protect yoursite.com/somefolder/ then you would put it in public_html/somefolder/
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

Posting Permissions

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