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

Why can users behind proxies not see my site?

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

Error 508/503 - Resource Limit Reached

Errors & Troubleshooting | Updated March 2026 A 508 "Resource Limit Is Reached" or 503...

What is a domain?

DNS | Updated March 2026 A domain name is the address people type into their browser to visit...

How to Create a Support Ticket

General | Updated March 2026 The fastest way to get help with your hosting account is by...

CGI Scripts - History Security and Modern Alternatives

General | Updated March 2026 CGI (Common Gateway Interface) was one of the earliest...



Save 30% on web hosting - Use coupon code Hosting30