Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    604

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

    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. #2
    Member
    Join Date
    Feb 2003
    Posts
    40

    Default

    Create an .htaccess file in that directory and add:
    DirectoryIndex index.php index.html

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Originally posted by darksoul
    Create an .htaccess file in that directory and add:
    DirectoryIndex index.php index.html
    Thanks!

Similar Threads & Tags
Similar threads

  1. How do i run php code that i made on cpanel branding index.html file?
    By littohouston in forum Themes and Branding
    Replies: 1
    Last Post: 01-06-2010, 04:06 PM
  2. want to switch hom page from index.html to index.php
    By websoftbiz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-12-2008, 07:14 PM
  3. adding an index.html page in Skeleton Directory
    By mafitsi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-26-2007, 11:44 PM
  4. Replies: 1
    Last Post: 02-21-2006, 02:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube