GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Change empty dirs or no index.html dirs - How to? (https://gfy.com/showthread.php?t=620898)

Gasper 06-13-2006 02:41 AM

Change empty dirs or no index.html dirs - How to?
 
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..

QTbucks_Mark 06-13-2006 02:54 AM

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


All times are GMT -7. The time now is 11:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123