From the little that I know of .htaccess files, they work as
follows.
..htaccess needs to be enabled first in the httpd.conf file. The
..httpd.conf contains lines as follows for this purpose:
<snip>
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
</snip>
IF it's set to All, .htaccess goes into affect and Apache parses each
applicable folder looking for it. If it's set to None, Apache parsing
for .htaccess gets turned off.
Enabling .htaccess mean that the Apache server then parses each
subfolder looking for an .htaccess file. The root .htaccess could be
used to supply 404 Error Handling, but some other things need to
get set up as well I believe.
Apache by default enables displaying the contents of a folder instead
of delivering a 404 Error Message. I believe that needs to be turned
off, so correct me if I'm wrong. To do this, edit the httpd.conf file and
comment out the following line:
AddModule mod_autoindex.c
so it appears as such:
#AddModule mod_autoindex.c
I haven't quite made it to the point to get Custom 404 working, so
if anyone can add to this, that would be great. I'm currently working
on some issues with virtualhosts.
Hope this helps.
Jim Carlock
Post replies to the newsgroup.