Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== .htaccess examples ====== ===== allow browse ===== <code> Options +Indexes </code> ===== prevent browse ===== <code> Options -Indexes </code> ===== error 404 ===== <code> ErrorDocument 404 /_error/docnotfound.html </code> ===== fancy indexes ===== 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. <code> FancyIndexing On IndexOptions NameWidth=* SuppressDescription IndexIgnore .htaccess </code> ===== redirect match ===== <code> RedirectMatch permanent docs[/?]$ /some/new/relative/path/to/docs/ </code> ===== basic authentication ===== <code> AuthGroupFile /dev/null AuthName "Some Name" AuthType Basic AuthUserFile /full/server/path/to/.htpasswd require valid-user </code> ==== sample .htpasswd ==== use the htpasswd utility to generate or modify .htpasswd files <code> joe:Nn.TGkDGRIDnc bob:njh4snJ8rxaZk </code> ===== redirect see other ===== <code> Redirect seeother /relative/path/to/somefile.html http://host/full/path/to/newfile.html </code> docs/apache_web_server/htaccess_examples.txt Last modified: 2008/08/03 00:25by 127.0.0.1