This is an old revision of the document!


.htaccess examples

Options +Indexes
Options -Indexes
ErrorDocument 404 /_error/docnotfound.html
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
  • docs/apache_web_server/htaccess_examples.1192740851.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)