Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Manage the default home pages

Update 08/03/2026

This guide concerns the names of the home pages that you can have on your Infomaniak Web Hosting, and which will be prioritized when a visitor accesses your website via its domain name.

 

Regarding Site Creator, please refer to this other guide.

 

Introduction

  • Default home pages on a web server are the first pages that appear when a user accesses a website without specifying a particular file.
  • If you simply enter http://domain.xyz in your browser's address bar, the web server will look for a default homepage to display, such as index.html, index.php, index.htm, or other similar variations.

 

Homepage Priority Order

The following pages are loaded by default at Infomaniak, in order of priority:

  1. index.html
  2. index.htm
  3. home.html
  4. home.htm
  5. default.html
  6. default.htm
  7. index.cgi
  8. index.php
  9. index.php5
  10. index.php4
  11. index.php3
  12. default.php
  13. home.php
  14. welcome.php

In summary:

  • If you have 2 pages in the root directory of your hosting account, based on the ranking above, you will see that index.php is recognized as the priority page over welcome.php.
  • You can also conclude that if you only have welcome.php as a page in the root directory, it will be loaded and function as the homepage.
  • If you have a home.html page, it will not work because this name is not in the list.
  • When you type www.domain.xyz in the browser, only index.php will be displayed automatically (and to display welcome.php, you will need to type the exact page name www.domain.xyz/welcome.php).

 

Customize the default homepage

To set a different homepage to be loaded by default, add DirectoryIndex followed by the appropriate pages in the .htaccess file:

DirectoryIndex accueil.html index.php index.html

This means that the web server will first look for a file named accueil.html. If it doesn't find accueil.php, it will then look for index.php, and finally index.html.


Has this FAQ been helpful?