When designing your website, you may want to create a custom Coming Soon or Under Construction page. Some people, however, may want to have a simple image file as their homepage. To do this, you will need to first upload the image to your account, and then set the account to look for that image instead of the normal default index file. Below are the instructions on how to do this.

Note that this is not recommended due to the way different browsers will display the image. The preferred method is to create a custom Coming Soon page and insert your image as part of the page. This way it will display the same in all browsers.

How to place an image file as your default landing page

  1. Log into your cPanel dashboard
  2. Upload your image file via the File Manager. Be sure you select the checkbox for Show Hidden Files (dotfiles). It is highly recommended you upload the image into the root folder for your domain. For the primary domain, this will be the public_html. To enter that folder, select the Web Root radio button.
  3. Once the image is uploaded into the main folder, find the .htaccess file. Highlight the file and click on the Edit tool located in the toolbar across the top of the page. Another popup may appear, simply click the Edit button to continue.
  4. Once in the editor, at the top of the file, enter the command DirectoryIndex <image file name> where the <image file name> is the name of the image you want to display. For example, if you upload an image named comingsoon.jpg your code would look like the sample below:
    DirectoryIndex comingsoon.jpg
  5. Once you have entered the code, click on the Save Changes button to finalize the change. You can now visit your website and see the image as your homepage.

 

 

Did you find this article helpful?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

The Community Support team wrote the article you're looking at now. We like to think it's perfect, but we're sure you have some suggestions. Please, let us know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Add a note field to order page in Prestashop 1.5
  2. how to make new website with single account.
  3. Site under brute force attack

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.