Avoiding index html
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Avoiding index html

Avoiding index.html

This article will show you how you can use a file other than the index.html as your home page.



Locating the .htaccess file in the File Manager

  1. Log in to your HostMonster cPanel account. Make sure you are in the cPanel tab.
  2. Locate the Files section.
  3. Click the File Manager icon.
  4. Check the View Hidden Files checkbox.
  5. You will need to open the folder for the domain name you are editing. If it is your main domain name then select public_html folder/yourdomainname.
  6. Right click the .htaccess and choose Code Edit.

In the .htaccess file you will need to change the directory index file. To do this simply add one of the following codes in the file:
  • Using Home.htm:
    DirectoryIndex home.htm index3.php index.htm index.html default.htm
  • Using Welcome.html:
    DirectoryIndex Welcome.html index.htm index.html default.html
  • Using Index.html:
    DirectoryIndex Index.html home.htm index.htm index.html default.htm


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How to Stop A Directory Index From Being Shown
Knowledgebase Article 299,711 views tags: directory htaccess index

If suddenly when you go to your page, you get nothing on the page. You can still get HTML to display, just not PHP. To serve HTML pages to browsers, we don't associate the Apache processes with your 2
Knowledgebase Article 190,427 views tags: blank page php

Explains the use of DirectoryIndex and how to use it.
Knowledgebase Article 195,503 views tags: cpanel htaccess

Related Help Content

The redirection of www.yourdomain.com/default.html or index.html to http://www.yourdomain.com/index.php?act=whatever redirects it to http://www.yourdomain.com/index.php%3fact=whatever In other words,
Knowledgebase Article 1,035,587 views tags: htaccess messing mod php redirect redirects rewrite variable variables

How do I make a sub directory (or sub folder) act as the public_html for your main domain?
Knowledgebase Article 1,097,183 views tags: Drupal domain htaccess joomla wordpress

What is the .htaccess file and where can I find more information?
Knowledgebase Article 2,082,438 views tags: htaccess tips tricks

Instructions to set different character sets in HTML. Note: Not all character sets will be correctly rendered with this encoding format, but most will. You can find specific information about which ch
Knowledgebase Article 221,779 views tags: arabic change character chinese html japanese language languages sets

What is the Index Manager? How do I use the Index Manager?
Knowledgebase Article 195,033 views tags: index manager

Explains how to edit the .htaccess
Knowledgebase Article 368,324 views tags: htaccess

Preventing bandwidth theft using the mod rewrite engine and .htaccess
Knowledgebase Article 208,309 views tags: htaccess rewrite

How to run CGI scripts for Addon domains.
Knowledgebase Article 232,699 views tags: cgi htaccess

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here