Show longer file names in directory/folder index

If you've ever wanted to show longer file names in your directory listing just create or edit an .htaccess in that folder.

In the file named .htaccess add the following code.

This will show longer file names without being cut off.

Options +Indexes
<IfModule mod_autoindex.c>
  IndexOptions NameWidth=*
</ifModule>




  • 4 Users Found This Useful

Was this answer helpful?

Related Articles

Complete Guide to htaccess on Apache

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

htaccess referral redirect

Setting Up a Referral Redirect With .htaccess   A referral redirect (also called a...

Nginx redirecting folder to another host or server

From time to time you may want to proxy out a path to another server or location. To perform a...

Create a 410 Redirect for Missing Files

Creating a 410 Gone Redirect for Removed Pages   A 410 response tells search engines that a...

Redirecting non-www to www with htaccess

Redirecting non-www to www with .htaccessIf you ever point your www. record to another server...



Save 30% on web hosting - Use coupon code Hosting30