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- Right click on the desktop and choose New > Text Document.
- Double click on the new text document to open it.
- Type: Options +Indexes
- Click on File > Save as.
- Name the file: htaccess
- Open and web browser, and log into Webfile (https://webfile.nd.edu) with your NetID and password.
- If your web site is stored in NetFile, click on Netfile Home > www.
- If your web site is stored in AFS, click on AFS Home > www.
- Click upload > Browse.
- Locate the htaccess file on your desktop > Open > Upload.
- Place a check mark next to the htaccess.txt file you just uploaded.
- Click rename.
- Type: .htaccess
- Click rename.
Mac Instructions
Step 1: Create the .htaccess file
- Click on the Mac HD icon > Applications > Microsoft Office > Word.
- In the new document type: Options +Indexes
- Click on File > Save as.
- Change the Save As: field to htaccess (it will display as htaccess.txt)
- Change the Where: field from Documents to Desktop
- Change the Format: field from Word Document to Text Only
- Click Save.
Step 2: Upload the file to your netfile/afs space.
- Open a web browser, and log into Webfile (https://webfile.nd.edu) with your NetID and password.
- If your web site is stored in NetFile, click on Netfile Home > www.
- If your web site is stored in AFS, click on AFS Home > www.
- Click upload > Browse.
- Locate the htaccess file on your desktop > Open > Upload.
- Place a check mark next to the htaccess.txt file you just uploaded.
- Click rename.
- Type: .htaccess
- Click rename.

