How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi, index.php, etc., by using a directive in a special configuration file in your webspace. That file is called '.htaccess' (a dot followed by 'htaccess'). The directive needed is

DirectoryIndex foo.html

That will make the default page (i.e., the file name that will be requested if there's no filename in the URL, www.domain.com/) 'foo.html'. The change will affect the directory the .htaccess file is placed in and all sub-directories.


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I edit php.ini (PHP settings) for my hosting package?

Becuase of the way in which we run PHP, you are able to customise its behaviour with php.ini...

How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

What is XML?

XML is browser based, and it is not dependant on the type of server that you are running your...

Does Planet Hippo support SSI (Server Side Includes)?

Yes we do. SSI (Server Side Includes) are tags that are placed in HTML pages, and evaluated on...

What is the list of Default Documents in order of priority?

The list of default documents (pages which IIS will serve when only the sub directory is...