How can I change the index listing in a directory?

Article Updated

This article has been consolidated

Directory index configuration is covered in our .htaccess guide.

Short answer: Add DirectoryIndex filename.html to your .htaccess file. Replace filename.html with the file you want displayed when someone visits the directory. You can list multiple files in order of preference. Use Options -Indexes to disable directory browsing.

View .htaccess Guide
Share: X in Reddit f Email
  • 498 Users Found This Useful

Was this answer helpful?

Related Articles

What is this Code 304 appearing in my stats?

Article Updated This article has been consolidated HTTP status codes in web stats are...

Why Do I Get Emails for Cron Jobs

Hosting Control Panel | Updated March 2026 Every time a cron job runs on your Ultra Web...

Why can users behind proxies not see my site?

General | Updated 2026 If some visitors can see your website but others cannot, and the...

Heartbleed Vulnerablity, Risk and Fix

Resolved Vulnerability | 2026 This Vulnerability Was Patched in 2014 Heartbleed...

Add Flash Chat to your Website

Obsolete Technology | 2026 This Technology Is No Longer Available Adobe Flash was...



Save 30% on web hosting - Use coupon code Hosting30