Add header footer in directory listing in Apache (httpd)

How to add header footer in directory listing in Apache (httpd)?

asked Apr 20, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

In the web directory's .htaccess file:

Options +Indexes
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
HeaderName /header.html
ReadmeName /footer.html
IndexIgnore header.html footer.html .htaccess

header.html and footer.html are under the website root directory (not the Linux root).

answered Apr 20, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...