Results 1 to 11 of 11
  1. #1

    Quick Help - Newbie Question

    So, I have a question that should be easy for most who have done this before to answer...

    I just purchased my first domain name and it came with CPanel and WHM. I have the HTML code for the website typed up in DreamWeaver and and it looks fine.

    My question is how do I get that .html file to show on my site? The only thing that is showing now is an index of all of the different files in my folders.

    Thanks for your help!

  2. #2
    Join Date
    Jan 2011
    Location
    London
    Posts
    603
    You need to make directory listing in .htaccess file. You can find the .htaccess file in root folder of website.

  3. #3
    Join Date
    Jan 2011
    Location
    Brazil
    Posts
    4
    Rename the file for index.html
    Sorry for bad english

  4. #4
    Join Date
    Jan 2011
    Location
    India
    Posts
    1,446
    yes, you are right. just go to cPanel and follow the below instructions.
    Quote Originally Posted by johnston981 View Post
    You need to make directory listing in .htaccess file. You can find the .htaccess file in root folder of website.

  5. #5
    Not finding the .htaccess file anywhere...

  6. #6
    Join Date
    May 2007
    Location
    Jakarta, Indonesia
    Posts
    60
    Just rename your 1st file (index - home) to index.html or index.php
    That's the common practice.

  7. #7
    Quote Originally Posted by johnston981 View Post
    You need to make directory listing in .htaccess file. You can find the .htaccess file in root folder of website.
    So I've found several .htaccess files. But what do you mean by "make a directory listing?"

  8. #8
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,953
    Ignore that suggestion, I believe he misunderstood.
    The first page in a site if not specified should be named "index.html" or "index.php" on a Cpanel server account. If you'd like some other file name to be the default, you would need to tell the webserver what that name should be through an .htaccess file in the document root of the site.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  9. #9
    Quote Originally Posted by bear View Post
    Ignore that suggestion, I believe he misunderstood.
    The first page in a site if not specified should be named "index.html" or "index.php" on a Cpanel server account. If you'd like some other file name to be the default, you would need to tell the webserver what that name should be through an .htaccess file in the document root of the site.
    Yes, I understand this. I have the .html (index.html) file in my public_html folder in File Manager. My question is how do I get this page to show when I go to my site? It's currently just showing an index of my files in public_html. I can click on the file and then it brings me to the page, but I want to know how to avoid that step and just have it show as my home page like a normal website.

  10. #10
    Join Date
    Apr 2011
    Location
    Philippines
    Posts
    301
    Try to rename the original index.html to something like index2.html and rename your .html file to index.php or index.html..

  11. #11
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,953
    Quote Originally Posted by iNVERSE1 View Post
    It's currently just showing an index of my files in public_html. I can click on the file and then it brings me to the page, but I want to know how to avoid that step and just have it show as my home page like a normal website.
    Strange that it doesn't recognize the default index page.
    In the main directory, public_html, you will need to edit or create an .htaccess file. In that, place this line:
    Code:
    DirectoryIndex index.html index.php
    This would be better set in the httpd.conf file server wide, however, in my opinion. It usually is by default on Cpanel.
    Having problems, or maybe questions about WHT? Head over to the help desk!

Similar Threads

  1. REGISTRAR vs. HOST - Quick Newbie Question
    By MISS CHIEVOUS in forum Web Hosting
    Replies: 8
    Last Post: 05-26-2008, 07:10 PM
  2. Quick question for a newbie?
    By twells22 in forum Ecommerce Hosting & Discussion
    Replies: 5
    Last Post: 02-10-2007, 08:16 PM
  3. A Quick Intro + a newbie question...
    By TWD-Tony in forum Dedicated Server
    Replies: 2
    Last Post: 09-06-2005, 04:34 PM
  4. Quick Newbie Question
    By zibogot in forum Dedicated Server
    Replies: 6
    Last Post: 10-22-2004, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •