Page 1 of 1

Header.html and AutoIndex - Custom Autoindex

PostPosted: 05. August 2009 08:00
by konzine
Hello,

it is me again! I am having a bit of an issue here. What I have done is set my Header.html to point to a CSS file so that my autoindex have a little bit nicer look. That works fine if the CSS and header.html are in the Directory that is being autoindexed, but I have 4300 Folders I would have to copy and paste those files too!

Is there a way to set a .htaccess file in the HTDOCS directory, that tells the autoindexer to automatically grab the header.html and CSS from the HTdocs directory and apply it to all further autoindexs, so that I dont have to sit there and copy all these 4300+ folders?

Thanks. :)

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 05. August 2009 20:42
by Wiedmann
Is there a way to set a .htaccess file in the HTDOCS directory, that tells the autoindexer to automatically grab the header.html and CSS from the HTdocs directory

Use absolute paths for header.html and CSS (prepend with a slash),

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 06. August 2009 03:32
by konzine
I do have the absolute path stated, maybe the code in the htaccess is wrong?

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 06. August 2009 10:26
by konzine
Well, many others and myself are at a loss on this one. No one seems to be able to figure out the .htaccess file to be able to get the autoindex to point to them.. even other forums. Hm, what about a seperate autoindexer script?

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 06. August 2009 12:47
by Wiedmann
maybe the code in the htaccess is wrong?

We can't know your ".htaccess". But maybe possible.

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 06. August 2009 16:44
by konzine
Code: Select all
Options Indexes
   IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble
   HeaderName header.html
   ReadmeName footer.html
   IndexIgnore header.html footer.html .htaccess style.css


What do ya think?

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 06. August 2009 17:00
by Wiedmann
What do ya think?

You are using relative paths instead of absolutes, as I have advised you.

Re: Header.html and AutoIndex - Custom Autoindex

PostPosted: 07. August 2009 09:51
by konzine
WORKS! You sir, are a genious. I love love love love you. Im gonna write a "how to" for the forum so everyone can see how I went about it, and thank you for the help!



As Promised :

http://community.apachefriends.org/f/viewtopic.php?f=16&t=36574

:D