Re: htaccess and indexes

by "Mike Taylor" <lonewolf(at)one.net>

 Date:  Tue, 21 Aug 2001 08:23:27 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  apple Server
  todo: View Thread, Original

----- Original Message -----
From: "David Sharp" <David.Sharp(at)sharp-words.com>
>
> ErrorDocument 404 /error.phtml
> DirectoryIndex /index.phtml

That's odd that this works for you.  All that does is define what your index
pages are named.  I've been using that in the root .htaccess file but it
certainly doesn't prevent people from browsing my directories.

> Options -Indexes
> ErrorDocument 403 /index.phtml

I just tried this and it doesn't seem to work, either.  Hmm.  Guess I know
why I ended up putting an index file in every directory where I thought I
needed one!

I was also told that you could create an .htaccess inside the directory you
want to block by placing the following in that file:

IndexIgnore */*

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