Show longer file names in directory/folder index

Updated 2026
Quick Answer

To show longer file names in Apache's directory listing (mod_autoindex), add this to your .htaccess:

IndexOptions FancyIndexing NameWidth=*

The * makes the name column auto-size to fit the longest filename.

For the complete guide:

Complete Guide to .htaccess on Apache

This article has been consolidated into our Complete Guide to .htaccess on Apache guide for easier reference.

  • 4 Users Found This Useful

Was this answer helpful?

Related Articles

Redirecting non-www to www with htaccess

htaccess & Redirects | Updated 2026 Choosing between www and non-www for your domain is a...

What are all these htaccess files?

Article Updated This article has been consolidated Everything about .htaccess files is in...

301 Redirect

Updated 2026 Quick Answer A 301 redirect permanently sends visitors and search engines...

What are these htaccess files that keep popping up?

htaccess & Redirects | Updated 2026 If you keep finding .htaccess files appearing in your...

How to Create a Temporary 302 Redirect via htaccess

htaccess & Redirects | Updated March 2026 A 302 redirect sends visitors (and search...



Save 30% on web hosting - Use coupon code Hosting30