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, webserver directory index, or main web page of a website of a group, company, organization, or individual.

Please make sure you have 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 a home page of your website by editing .htaccess file. It is just required to add the following code in the .htaccess file:

DirectoryIndex required_file_name

 

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

Please 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 placed them in / for example, no one will be able to view them.

About Author

Leave a Reply

Your email address will not be published. Required fields are marked *