SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Indiana
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to have directorylist specify 2 files?

    So eg if index.htm doesn't exist it looks for index.php?

    And if so how?

    Thank you :-)

  2. #2
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Indiana
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and of course I mean htaccess

  3. #3
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did it by using httpd.conf

    Code:
    #
    # 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.htm index.php
    </IfModule>

  4. #4
    ********* Addict
    Join Date
    Apr 2000
    Location
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that by simply putting

    DirectoryIndex index.html index.htm index.php

    on your .htaccess file will do the trick, if you can't access httpd.conf. I'm not absolutely sure, though.

  5. #5
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Indiana
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, I couldn't access the
    httpd.conf so the latter worked
    fine Thank you so much :-)



Bookmarks

Posting Permissions

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