Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Post Html or Cpanel... Why is there index and no home page??

    I'm a complete newb at posting sites and I'm not sure how to get the home page up instead of the index page, I have uploaded html files onto the html_public folder but it wont load my home html when entered in a browser, is it something I haven't got in my code or is it something not loaded on to the c_panel????

  2. #2
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Html or Cpanel... Why is there index and no home page??

    Hey,

    May I know the error you are receiving while taking the domain in the browser?

  3. #3
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: Html or Cpanel... Why is there index and no home page??

    By default, index.html is the home page. This is fairly standard across control panels and hosting platforms. Upload your home page into the public_html (not html_public) directory as index.html, and it will automatically be loaded when your site is accessed.

    If you insist on using the filename home.html, you can click Redirects in cPanel and create a redirect from home.html to index.html. Alternatively, you can create a symlink on the filesystem from index.html to home.html. However, using index.html is the standard, and index.html is the page you need to replace when you upload your site.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Default Re: Html or Cpanel... Why is there index and no home page??

    Thanks very mych this has done the job

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Html or Cpanel... Why is there index and no home page??

    Of note, there is a much simpler way to change to home.html over index.html rather than using a redirect or a symlink. If you put the following into /home/username/public_html/.htaccess file (in File Manager, select to view hidden files and then open the file .htaccess in public_html folder):

    Code:
    DirectoryIndex home.html
    Here is a discussion on Apache's site about this directive:

    mod_dir - Apache HTTP Server

    This is the preferred method to have another page display as the main default page over other methods as it parses this page first.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Index page appears instead of home page!
    By Shunyata in forum New User Questions
    Replies: 5
    Last Post: 12-12-2008, 12:17 AM
  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. Which page do you want to load first index.html or index.htm?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 04-10-2008, 09:36 AM
  4. Default index.html page
    By rootuser in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-22-2006, 03:38 AM
  5. Is this the way to add an index.html page
    By nikaian in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-10-2005, 02:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube