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

Disable error_log via htaccess

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

Complete Guide to htaccess on Apache

htaccess & Redirects | Updated 2026 The .htaccess file is one of the most powerful tools...

How to Create a Temporary 302 Redirect via htaccess

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

Create a 410 Redirect for Missing Files

htaccess & Redirects | Updated 2026 A 410 (Gone) status code tells search engines that a...

Redirect http to https and www

Updated 2026 Quick Answer To redirect HTTP to HTTPS and non-www to www (or vice versa),...



Save 30% on web hosting - Use coupon code Hosting30