Forum Moderators: phranque

Message Too Old, No Replies

Changing standard Apache pages template

         

Eyen

5:36 am on Sep 23, 2006 (gmt 0)

10+ Year Member



Is it possible to replace standard page template which Apache uses to generate list of files for any folder (unformatted white pages) with something different? I mean to change background, to format text, etc.
Thank you.

jdMorgan

2:06 pm on Sep 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Eyen,

Welcome to WebmasterWorld!

Yes, it is possible -- See Apache mod_autoindex [httpd.apache.org].

Jim

Eyen

2:01 pm on Oct 4, 2006 (gmt 0)

10+ Year Member



Ok, I created HEADER.html, FOOTER.htmk, .htaccess and my root folder began to look how I wanted it to be. But how to extend the design to all nested folders as well?

jdMorgan

5:12 pm on Oct 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does this info from the HeaderName documentation help?

"Filename is treated as a URI path relative to the one used to access the directory being indexed. Note that this means that if Filename starts with a slash, it will be taken to be relative to the DocumentRoot."

Starting the header/footer paths with a slash should allow you to 'share' the headers/footers among all directories.

Jim