How to manage index files

How to manage index files

Overview
This article shows how to control the way Apache manages directories. 

Definition

You can set the default files Apache looks for when a browser requests a URL that doesn't end in a file name. You can also toggle whether Apache displays the contents of a directory if no default files are found. 

Attention: If you do not have experience working with .htaccess files, we highly recommend that you contact our Support Team for assistance. A misconfigured .htaccess file can create major issues for your website.

Procedure

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Click the Index Management link for the directory that you would like to manage.
  4. In the Default Index Files field, type a list of default index files, one file name per line. 

    Attention: This setting affects when a browser requests a URL that ends in a back slash, directory. Apache will use this list of files to determine which file to serve and will serve the first file found in the list from top to bottom.

  5. From the Directory Listing drop-down menu, select the desired behavior for when a browser requests a URL that ends in a back slash, directory, and no default index files are found.
    If set to:
    • No: The browser will display a 403 Forbidden message.
    • Yes: The browser will display a list of the contents of the directory.
    • Inherited: The setting will be inherited from a parent directory.
  6. From the Directory Listing Style field, select the desired listing style.
    If set to:
    • Inherited: The directory list will inherit the settings defined for the parent directory.
    • Simple Listing: The directory list will simply include the directory's file names.
    • Fancy Listing: The directory list will include timestamps and file sizes.
  7. Click Update.
     
     
    For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to prevent bandwidth theft or Hotlinking
Added on Mon, Aug 5, 2013
How to create .htaccess files
Added on Fri, Aug 2, 2013
How to create URL redirect rules
Added on Tue, Jul 30, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013
How to redirect a non-WWW web address to a WWW web address
Added on Fri, Aug 2, 2013
Creating and managing custom error pages
Added on Tue, Jul 30, 2013
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013
How to create and manage MIME types
Added on Tue, Aug 6, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
.htaccess rewrite commands
Added on Tue, Mar 27, 2018