htaccess question about DirectoryIndex....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jace
    FBOP Class Of 2013
    • Jan 2004
    • 35562

    #1

    htaccess question about DirectoryIndex....

    I have my an htaccess in my main directory that has

    DirectoryIndex start.php

    but I just realized that it is also using that rule for any directory inside that main directory...so any folder within the main is looking for start.php

    how do I tell it just to use start.php for that one single folder and not all the subfolders?
  • jrap
    Confirmed User
    • Feb 2005
    • 448

    #2
    I think something like this will work:

    DirectoryIndex start.php index.php index.html etc

    Comment

    • Jace
      FBOP Class Of 2013
      • Jan 2004
      • 35562

      #3
      Originally posted by jrap
      I think something like this will work:

      DirectoryIndex start.php index.php index.html etc
      oh nice, forgot about that order thing...it will look for start.php first, then move on when it isn't there

      thanks, that worked perffectly

      Comment

      Working...