How do I specify a custom index page?

By default, the following are seen as default index pages on our Linux platform:

  • index.php
  • index.html
  • index.htm
  • index.cgi
  • index.rb
  • index.py

Should you wish to specify a different/specific filename as your index page, you can do this with DirectoryIndex.

Add the following in the .htaccess file, within the directory you are serving/intend to serve site content from:

DirectoryIndex file.php

file.php should be replaced with the name of the file you wish to make default.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What version of Windows do you run on the Windows servers?

Our Windows servers run using Windows 2016 R. These servers are based on the same specification...

Providing Access Logs to a Third-Party provider

Some third-party providers may request access logs for investigation (i.e. Google AdWords). You...

403 Response on POST Request

As part of our Web Application Firewall we occasionally filter invalid POST requests when we...

Can I enable HSTS?

The HTTP Strict-Transport-Security response header (often abbreviated as HSTS) lets a website...

Does your Windows hosting support .NET Core?

Windows hosting doesn't support the .NET Core framework. However, if you would like to...

Powered by WHMCompleteSolution