By default, the webservers at InMotion Hosting look for specific file names to display as the first page of a website. They also look for these pages in a specific order. The file names, in order, are index.htm, index.html, index.php

If you want to use a different file, such as an image, you will need to tell the server to look specifically for that file and to ignore the default file names. Perhaps you created a nice image with your business logo and 'Coming Soon!' as the text and wish to use that image as your main page. Follow along with the instructions below to learn how to set an image as the first page of your site.

NOTE: This is not a recommended method as the image will display in different locations on the visitor's screen depending on which browser they are using. The recommended method would be to create a single index.htm or index.html file with just that image. This way it would display uniformly across the browsers.

Setting an image as your website's homepage

  1. Log into your cpanel
  2. Using the File Manager, navigate to the home folder for the domain you want to work with.
  3. Once inside the correct folder, you will need to edit your .htaccess file by highlighting the file and clicking the Edit icon located across the top of the panel. If you do not have one in the folder, you will first need to create a new one by clicking the New File icon located in the list of icons at the top of the screen. (note the correct name is .htaccess complete with the . in the front)
  4. Once the editor page comes up on the screen, you will want to enter the code DirectoryIndex [filename] at the top of the file. Be sure to change [filename] to your image filename. For example, if your image is named splash.jpg then you would enter the code below.
    DirectoryIndex splash.jpg
  5. Once you have entered the code, click the Save Changes button found in the upper right hand screen. You can now visit your site and see your image as the first page.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!