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.

I have an index.html but my site keeps showing index of/

Discussion in 'General Discussion' started by phillipw1994, May 2, 2011.

  1. phillipw1994

    phillipw1994 Registered

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have an Index.html File but my site still shows Index Of/ Page
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If thats not a typo, rename the file to index.html no caps. ;)
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    To expand on Infopro's answer, Linux is case-sensitive, which means that index.html and Index.html are different files. By default, Apache will look for index.html, but not Index.html. You can customize the files Apache looks for to use as an index, and the order, in the WebHost Manager by clicking Main >> Service Configuration >> Apache Configuration >> DirectoryIndex Priority.
     
  4. phillipw1994

    phillipw1994 Registered

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    The index.html was a typo i spelt it correctly. It's fine i figured it out i had to define DirectoryIndex index.html in .htaccess to get the site to display index.html as default. I am on a shared hosting plan using Cpanel 11. The hosting providers are using Cpanel Whm. They didn't define defaults for DirectoryIndex so you could change it to what you wanted using a .htaccess file.
     
Loading...

Share This Page