Header.html and AutoIndex - Custom Autoindex

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Header.html and AutoIndex - Custom Autoindex

Postby konzine » 05. August 2009 08:00

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. :)
konzine
 
Posts: 12
Joined: 02. August 2009 13:45

Re: Header.html and AutoIndex - Custom Autoindex

Postby Wiedmann » 05. August 2009 20:42

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),
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Header.html and AutoIndex - Custom Autoindex

Postby konzine » 06. August 2009 03:32

I do have the absolute path stated, maybe the code in the htaccess is wrong?
konzine
 
Posts: 12
Joined: 02. August 2009 13:45

Re: Header.html and AutoIndex - Custom Autoindex

Postby konzine » 06. August 2009 10:26

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?
konzine
 
Posts: 12
Joined: 02. August 2009 13:45

Re: Header.html and AutoIndex - Custom Autoindex

Postby Wiedmann » 06. August 2009 12:47

maybe the code in the htaccess is wrong?

We can't know your ".htaccess". But maybe possible.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Header.html and AutoIndex - Custom Autoindex

Postby konzine » 06. August 2009 16:44

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?
konzine
 
Posts: 12
Joined: 02. August 2009 13:45

Re: Header.html and AutoIndex - Custom Autoindex

Postby Wiedmann » 06. August 2009 17:00

What do ya think?

You are using relative paths instead of absolutes, as I have advised you.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Header.html and AutoIndex - Custom Autoindex

Postby konzine » 07. August 2009 09:51

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
konzine
 
Posts: 12
Joined: 02. August 2009 13:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests