Knowledgebase Banner Advert

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.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

When I try and view my website I get an HTTP Error 403 - Forbidden message.

A '403 Forbidden' message means that the browser has requested a page that it is not...

My links are not working. What is wrong?

First of all, check that the link is correctly spelled, and that the correct case is...

I've installed the formmail script, but my form isn't working. Why?

The Formmail Script is provided via the Control Panel, full usage instructions can be...

How do I enable gzip compression on my website?

You can decrease load times on your website by compressing the contents. You can do...

How can I enable directory indexing?

If you want to see a list of files in a directory when viewing it in...