1## Enable this to restrict editing to logged in users only 2 3## You should disable Indexes and MultiViews either here or in the 4## global config. Symlinks maybe needed for URL rewriting. 5#Options -Indexes -MultiViews +FollowSymLinks 6 7## make sure nobody gets the htaccess, README, COPYING or VERSION files 8<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)"> 9 <IfModule mod_authz_host> 10 Require all denied 11 </IfModule> 12 <IfModule !mod_authz_host> 13 Order allow,deny 14 Deny from all 15 </IfModule> 16</Files> 17 18## Don't allow access to git directories 19<IfModule alias_module> 20 RedirectMatch 404 /\.git 21</IfModule> 22 23## Uncomment these rules if you want to have nice URLs using 24## $conf['userewrite'] = 1 - not needed for rewrite mode 2 25#RewriteEngine on 26# 27#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] 28#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] 29#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] 30#RewriteRule ^$ doku.php [L] 31#RewriteCond %{REQUEST_FILENAME} !-f 32#RewriteCond %{REQUEST_FILENAME} !-d 33#RewriteRule (.*) doku.php?id=$1 [QSA,L] 34#RewriteRule ^index.php$ doku.php 35# 36## Not all installations will require the following line. If you do, 37## change "/dokuwiki" to the path to your dokuwiki directory relative 38## to your document root. 39#RewriteBase /dokuwiki 40# 41## If you enable DokuWikis XML-RPC interface, you should consider to 42## restrict access to it over HTTPS only! Uncomment the following two 43## rules if your server setup allows HTTPS. 44#RewriteCond %{HTTPS} !=on 45#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] 46