Hi all,
I have a bunch of folders within my intranet, each with a .htaccess file as follows:
Code:
Options +Indexes
IndexOptions +FancyIndexing
IndexOptions +SuppressHTMLPreamble
HeaderName .dir-header.html
IndexIgnore *.doc *.docx *.htm *.html *.pub *.txt *.xls *.xls
ServerSignature Off
My .dir-header.html file is as follows:
Code:
<html>
<style type="text/css">
<!--
body {
background-image: url(../../../../../images/background_gradient.gif);
background-repeat: repeat-y;
}
-->
</style>
<p><em><strong>Documentation Category 1</strong></em></p>
</html>
What I want to know is if I can replace my manually input directory list header (ie: "Documentation Category 1") with an Apache variable for the current directory?
It's basically so I can just copy my .dir-header.html file into any directory without having to manually edit it to reflect the correct directory - instead it dynamically displays the correct/current one.
I have honestly tried Googling this but I just ended up with a headache.
Could anyone advise if this can be done?
Thank you!
Elliot