I'm trying to pretty up the default directory view in apache with an htaccess file. I've done pretty much everything I want to do, except change the default verbiage for the title. By default, it says something like:
"Index of [folder_name]"
and if I use this:
# SPECIFY HEADER FILE
HeaderName /apache/header.html
in htaccess, I can include my own header title, which I like because I can add CSS styling and whatnot, but I cannot make the title change with each folder I visit. Is there a way to do this?
I think this is what I was after - http://httpd.apache.org/docs/2.2/env.html
Enter this as the title for your h1 tags: <!--#echo var="REQUEST_URI" --> and save the header with a .shtml tag extension and your titles become dynamic. However, I still would like to be able to change the verbiage - get rid of the "Index of" and maybe have only the current directory show rather than the path to the directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With