University of Notre Dame > OIT

Office of Information Technologies

services banner security banner

RSS Feed
Subscribe to the OIT Security Alerts RSS Feed

OIT Home > Web Hosting & Publishing Services > Enabling Web Index Listings

How do I enable the directory index listing of my web space?

By default, the directory index listing of your web folder is disabled. To enable web index listings, you will need a file called .htaccess in your www folder. This file will tell the website to display indexes when there is no index.html file present. The instructions below will help you create a .htaccess file.

*** Please note: Sensitive information (such as social security numbers, credit card data, FERPA protected data, or HIPAA protected data) should NEVER be published on the web!!!!! ***

Windows Instructions
Mac Instructions

Windows Instructions

Step 1: Create the .htaccess file
  1. Right click on the desktop and choose New > Text Document.
  2. Double click on the new text document to open it.
  3. Type:  Options +Indexes
  4. Click on File > Save as.
  5. Name the file: htaccess
Step 2: Upload the file to your netfile/afs space.
  1. Open and web browser, and log into Webfile (https://webfile.nd.edu) with your NetID and password.
    1. If your web site is stored in NetFile, click on Netfile Home > www.
    2. If your web site is stored in AFS, click on AFS Home > www.
  2. Click upload > Browse.
  3. Locate the htaccess file on your desktop > Open > Upload.
Step 3: Rename the htaccess.txt file to .htaccess
  1. Place a check mark next to the htaccess.txt file you just uploaded.
  2. Click rename.
  3. Type: .htaccess
  4. Click rename.

Mac Instructions

Step 1: Create the .htaccess file

  1. Click on the Mac HD icon > Applications > Microsoft Office > Word.
  2. In the new document type:  Options +Indexes
  3. Click on File > Save as.
  4. Change the Save As: field to htaccess (it will display as htaccess.txt)
  5. Change the Where: field from Documents to Desktop
  6. Change the Format: field from Word Document to Text Only
  7. Click Save.

Step 2: Upload the file to your netfile/afs space.

  1. Open a web browser, and log into Webfile (https://webfile.nd.edu) with your NetID and password.
    1. If your web site is stored in NetFile, click on Netfile Home > www.
    2. If your web site is stored in AFS, click on AFS Home > www.
  2. Click upload > Browse.
  3. Locate the htaccess file on your desktop > Open > Upload.
Step 3: Rename the htaccess.txt file to .htaccess
  1. Place a check mark next to the htaccess.txt file you just uploaded.
  2. Click rename.
  3. Type: .htaccess
  4. Click rename.
 
 

Need answers?
Contact the OIT Help Desk at oithelp@nd.edu or 574-631-8111.