How to have a different default index file?

By default, Siteground's servers are configured to process the following index files:

index.html index.cgi index.shtml index.php index.htm default.htm default.html home.htm

In the above order, first the webserver first looks for the file index.html. If it is not present it looks for the next "index.cgi" and so on.

In case you'd like to use a different index file please create a file called .htaccess and specify in it:

DirectoryIndex myfile.html

This will cause the webserver to look only for myfile.html. If there is no such a file it will list the contents of the directory.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Brute Force Attack – What it is and How to Block It

Brute-force is a method of guessing your password by trying combinations of letters, numbers and...

What is pdftoppm and is it supported by Hostlantern?

Pdftoppm is a library that handles the conversion from Portable Document Format (PDF) files to...

How to clear your Internet browser’s cookies?

Sometimes you may need to clear the cookies saved by your browser. Basically the cookies...

Hacked Website

The most common reasons for a hacked (defaced) website include: - Outdated web application....

How to clean my files from malicious code?

If your website has been hacked and malicious content has been inserted into your files, you...