Back to Common Web Hosting Terms

What Is The Index.html File

When you type in the URL of a web site, but do not specify an actual file name (eg, the server will look for a file named "index.html" and will display it on your browser.) This is the home page for the web site. You can display the same page by typing

The server actually looks for different extensions in a certain order and will load the first one it finds. Therefore, if you have an index.html file and an index.php file in the same directory, it will load the index.html file and not the index.php file unless otherwise specificed. If you wish to change the index file name, you can do so with a .htaccess file. We do not recommend changing this as most software is installed based on the normal convention. Here are the steps to do so.

  • Create a file called .htaccess in the /public_html/ folder if you don't have it. Sometimes one may already be created.
  • In the file write the following:
     DirectoryIndex  file.txt 

  • Replace file.txt with the file you want your index page to be.
  • Open your website and if all has worked well, you should have your customized index page.

Related Articles

What Are Mime Types
What Are Name Servers
What Are Web Services
What Does Case Sensitive Mean
What Does Parse Mean

Can’t Find what you need?

No worries, Our experts are here to help.