docs:apache_web_server:htaccess_examples

.htaccess examples

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
  • docs/apache_web_server/htaccess_examples.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1