Re: htaccess and indexes

by "howardm" <howardm(at)achilles.net>

 Date:  Mon, 20 Aug 2001 19:26:42 -0400
 To:  "HWG Techniques" <hwg-techniques(at)hwg.org>
 References:  chw whidbey
  todo: View Thread, Original
Why not add an index page to those directories with a re-direct to the index
page you want them to see?

howardm

----- Original Message -----
> David Sharp wrote:
> >
> > 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.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA