[CGI3.09] 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

[CGI3.13] How can I update my Joomla1.5 to the latest version?

Upgrading existing installations of Joomla 1.5The authors of Joomla issue patches which will...

[CGI3.06] What is Python?

Python is an interpreted, interactive, object-oriented programming language. It is often compared...

[CGI3.01] 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...

[CGI3.14] Why do you not have a one click install for Magento shopping cart?

Magento is a very resource hungry application, we have found it performs poorly on shared hosting...

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