htaccess and indexes
by David Sharp <David.Sharp(at)sharp-words.com>
|
Date: |
Mon, 20 Aug 2001 18:38:05 +0200 |
To: |
hwg-techniques(at)hwg.org |
References: |
chw |
|
todo: View
Thread,
Original
|
|
Hi,
Sorry if this question seems pretty basic, but I've just spent over
an hour searching on the web, including on the main Apache sites, and
I just can't seem to find the answer.
I need to know what directive to put in my .htaccess file to prevent
users seeing the contents of a directory when that directory doesn't
contain an index file.
For example, if a user tries to access the following address:
http://www.presse-en-ligne.com/site/
I'd like him to be rerouted to the error page, rather than seeing the
contents of the "site/" directory.
NB: The site is running on Apache/1.3.19.
Many thanks for any help.
--
David Sharp, journalist(e), France <mailto:david.sharp(at)sharp-words.com>
Site personnel / Personal home page http://www.sharp-words.com/
Site et forum / Press site & mailing list: http://www.presse-en-ligne.com/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA