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

301 Redirect

This code will redirect all visitors who attempt to access the old-url.html page to the...

Create a 410 Redirect for Missing Files

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

htaccess referral redirect

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

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

To solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” follow...

Disable error_log via htaccess

Disabling error_log Files via .htaccess   If your error_log file is growing large and...



Save 30% on web hosting - Use coupon code Hosting30