The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I change one directory to look for index.php before .html?

Discussion in 'General Discussion' started by noimad1, May 28, 2004.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    I need to change one directory on my server to look for index.php file and run it as default. There is also an index.html file in the directory, but I don't want this one to go first.

    Is there a way I can do that per directory?

    Thanks,
    Damion
     
  2. darksoul

    darksoul Active Member

    Joined:
    Feb 20, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Create an .htaccess file in that directory and add:
    DirectoryIndex index.php index.html
     
  3. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    Thanks!
     
Loading...

Share This Page