I am using mod_autoindex to give access to a hierarchy of files with an apache server. In most folders including the root folder, I don't want to display the "Last Modified" column, so I added the following in the .htaccess file in the root folder:
IndexOptions FancyIndexing [...] SuppressLastmodified
The [...] stands for other options I omitted to avoid cluttering this post.
Further down in the folder hierarchy, there is a folder for which I want to display that column again.
I did not find any available option to revert for that folder the effect of SuppressLastModified.
I tried to put an .htaccess file in the subfolder with:
IndexOptions FancyIndexing LastModified
or
IndexOptions FancyIndexing +LastModified
Neither work, and the vim syntax highlighting did not recognize LastModified as a known keyword.
Does anyone have a recommendation on how to do that? Many thanks to all in advance.
OK.
I found the answer. Just adding a new
.htaccessfile in the subfolder with the original top-levelIndexOptionswith theSuppressLastModifiedremoved does the trick.Top-level folder
.htaccessfile contains:Subfolder
.htaccessfile contains just: