[HTM3.03] 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.

Was this answer helpful?

 Print this Article

Also Read

[HTM3.05] 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...

[HTM3.07] How do I redirect my site?

To make a 301 redirect for a changed page, you need to add the following into a .htaccess...

[HTM3.01] Does Hosting cPanel support SSI (Server Side Includes)?

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

[HTM3.04] What is the server path?

The path to your website is partially determined by your domain name, but is in the following...

[HTM3.02] What is XML?

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