What is an index page?

The index page is the URL or local file that automatically loads when a web browser starts and when the browser's 'home' button is pressed. The term is also used to refer to the front page, web server directory index, or main web page of a website of a group, company, organization, or individual.

Make sure you have the index page in your public_html directory, otherwise, your site will not be shown in the browser correctly. When creating your index page, you should use one of the following names (the first one found will be shown if the visitor doesn't specify a page in the URL):

index.html
index.php

You may also specify which file name should be the home page of your website by editing the .htaccess file. You just need to add the following code to the .htaccess file:

DirectoryIndex required_file_name

'required_file_name' should be substituted with the existing file name. If you want to set up a list of these files, please separate them with space symbols.

Clear your browser cache before visiting your website to see the changes.

NOTE: When adding files to your site, it is important that you add them in the right place. For example, you will need to place files you wish to be visible on the Internet within public_html or a subdirectory of public_html. If you place them in / for example, no one will be able to view them.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Disk space

Disk space is the amount of server disk space allotted per hosting account by a hosting company....

Point your domain to a simple "Coming soon" page

Using Edit 1. Log into cPanel and navigate to File Manager menu in Files section: 2. Navigate...

How to create and download website backup automatically

Create a directory called /backup under the /home directory of your cPanel account: Then,...

How to optimize hosting account space

In this article we will explain how to clean up your hosting account making some disk space for...

How to use the Browser Console

Browser Console Browser Console is the analog of command-line interface, but for the whole...