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.
Like this Article?

Login to comment.

Your Opinion Matters

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

I'm Scott Mitchell, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

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

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Domain Change problems.
  2. Why 404?
  3. how to change may site name in joomla 3.0?

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!