Loading...

Knowledge Base
Up to 75% off on hosting for WordPress websites and online stores

How to Set a Custom File as Your Homepage

Want to use a different file as your website's homepage instead of the usual index.html? It's easier than you might think! This guide will walk you through the process of how to set a custom file as your homepage by making a quick edit to your .htaccess file in your Bluehost cPanel.

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. Login to your Account via Bluehost Account Manager.
  2. Click the Hosting tab from the side navigation menu to the left.
    bh-hosting
  3. Scroll down to click the CPANEL button under Quick Links.
    quick-links-cpanel
  4. Under the File section, click the File Manager icon.
    new-cpanel-file-manager
  5. Look for the Settings button, located towards the upper right corner of your screen.
    file-manager-settings
  6. From here, click the Preferences popup, then toggle the radio button for "Show Hidden Files (dotfiles)".
    show-hidden-files
  7. Scroll to locate the .htaccess file from the list.
  8. Right-click on the file, then click on Edit from the menu.
    filemanager-edit
  9. A dialogue box may appear asking you about encoding; just click on the Edit button to continue. The editor will open in a new window.

Modifying the .htaccess File to Set a Custom Homepage

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

For more information, you may visit this article .htaccess Tutorial.

Summary

By customizing the .htaccess file, you can set any file as your default homepage instead of index.html. This flexibility allows for more control over your website’s structure and user experience, especially when using unique homepage formats.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...