Results 1 to 4 of 4

Thread: Server doesnt recognise index.html?

  1. #1
    marcjacob
    Guest

    Server doesnt recognise index.html?

    I have this wierd thing going on with my server. If you surf to domain.com it wont find the index.html but list the directory contents including the index.html file! But it will find index.php. If i dont have an index.php or index.anything but do have the index.html - it will just list the directory contents. Any ideas?


  2. #2
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    for some reasons maybe the default directory index document to load is broken

    if you have an .htaccess paste the following line, if you do not have one .htaccess (DOThtaccess) create one and upload it

    Code:
    DirectoryIndex index.html
    then call your hoster and tell him to fix it or ask him what you (might) have done

    :develish:

    p.s. bedtime y'all
    :-D


  3. #3
    marcjacob
    Guest
    THANKYOU THANKYOU THANKYOU

    I wonder what ive done

    That worked perfectly - you rock!!


  4. #4
    If homosexuality is a disease, let's all call in queer to work. procam's Avatar
    Join Date
    Mar 2004
    Posts
    317
    Quote Originally Posted by marcjacob View Post
    I have this wierd thing going on with my server. If you surf to domain.com it wont find the index.html but list the directory contents including the index.html file! But it will find index.php. If i dont have an index.php or index.anything but do have the index.html - it will just list the directory contents. Any ideas?
    Make sure you have the host fix apache this was only a bandaid it should be fixed properly so apache reads your index.html

    Apache config area that handles this should look something similar to this depending on your needs.

    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    #
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
    </IfModule>


Posting Permissions

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