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

When I Upload an htaccess File It Disappears

htaccess & Redirects | Updated March 2026 Your .htaccess file is there. You just can't...

Redirecting non-www to www with htaccess

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

Disable error_log via htaccess

htaccess & Redirects | Updated 2026 The error_log file in your public_html directory...

htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

htaccess & Redirects | Updated March 2026 The "pcfg_openfile: unable to check htaccess...

Nginx and htaccess Redirect Issues

htaccess & Redirects | Updated March 2026 If your .htaccess redirects aren't working for...



Save 30% on web hosting - Use coupon code Hosting30