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.

  • 121 Users Found This Useful
Was this answer helpful?

Related Articles

How do I upload a CGI script to my web space?

CGI scripts can be uploaded to anywhere in your hosting package, however it's traditional to...

What modules are installed on the server?

Simply log into your Fast Name Control Panel and select Web Diagnostics. Under that section you...

Where do I put CGI or Perl scripts? Do they have to be in a specific directory?

Although we provide a cgi-bin as standard you do not need to put your CGI scripts in there. You...

What is Perl?

Short for Practical Extraction and Report Language, Perl is a programming language developed by...

Does Fast-name support SSI (Server Side Includes)?

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