..


Sponsored Links

How do I set the index page of my site?

Apache has dell'apposita DirectoryIndex.
To set the index file of our site (ie the default page is called when you type the URL of our site or a folder) can be invoked. Htaccess file by adding inside:

 



 DirectoryIndex index.html

 
It 'can also define multiple file names:
 



 DirectoryIndex index.html home.html home.php index.php

 
In doing so, our web-server will use the index as the first file it finds from the left (this means that if our server is not present on the index.html file is called index.php, if you miss this too will be tried and home.html so on).

For further information we suggest reading this lesson of our Guide to Apache .

In the same category ...
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links