View Single Post
Old 06-13-2006, 02:54 AM  
QTbucks_Mark
Confirmed User
 
Join Date: Mar 2006
Location: Europe
Posts: 254
Quote:
Originally Posted by Gasper
I have lot's of no index.html directories on my server or empty one and I would like to change the output .. how can I do that? I'd like to display some sponsors instead of the default directory listening with maps and stuff..
Maybe there is a more elegant way of doing it, but this should work:

Code:
<Directory /path/to/your/dir>
 Options -Indexes
</Directory>
And then change the 403 ErrorDocument (Forbidden) to the output you want:

Code:
 ErrorDocument 403 /your/list/of/sponsors.html
__________________


QTbucks : featuring cherrywinters.com - sweetcarry.com - cutecaroline.com
[email protected] :: ICQ 26505638
QTbucks_Mark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote