Options +Indexes
Options -Indexes
ErrorDocument 404 /_error/docnotfound.html
This code is for Apache 1.3. The FancyIndexing directive has been removed in Apache 2. The same functionality is available through the FancyIndexing option to the IndexOptions directive.
FancyIndexing On IndexOptions NameWidth=* SuppressDescription IndexIgnore .htaccess
RedirectMatch permanent docs[/?]$ /some/new/relative/path/to/docs/
AuthGroupFile /dev/null AuthName "Some Name" AuthType Basic AuthUserFile /full/server/path/to/.htpasswd require valid-user
use the htpasswd utility to generate or modify .htpasswd files
joe:Nn.TGkDGRIDnc bob:njh4snJ8rxaZk
Redirect seeother /relative/path/to/somefile.html http://host/full/path/to/newfile.html