How do I set a custom directory index?

By default, our web servers will look for the index.html file in order to know what to display when any given directory is accessed, such as public_html.

You can change which index file is looked-for if you don’t wish to use – or can’t use – the default index.html file. Rules are added within the root .htaccess file to make this work.

To make this easier you can use the Hostrite tool to set the default directory index:

  1. Head to Manage Hosting and select the package you wish to update the default directory index for.
  2. Select the Directory Indexing icon.
  3. Various common index files are pre-filled. You may wish to add your own or simply select Enable Directory Indexing – we’ll then generate the .htaccess rule and add it to the correct location in your site files to set the desired behaviour. 
  • 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