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 Order allow,deny 10 Deny from all 11</Files> 12 13## Uncomment these rules if you want to have nice URLs using 14## $conf['userewrite'] = 1 - not needed for rewrite mode 2 15#RewriteEngine on 16# 17#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] 18#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] 19#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] 20#RewriteRule ^$ doku.php [L] 21#RewriteCond %{REQUEST_FILENAME} !-f 22#RewriteCond %{REQUEST_FILENAME} !-d 23#RewriteRule (.*) doku.php?id=$1 [QSA,L] 24#RewriteRule ^index.php$ doku.php 25# 26## Not all installations will require the following line. If you do, 27## change "/dokuwiki" to the path to your dokuwiki directory relative 28## to your document root. 29#RewriteBase /dokuwiki 30# 31## If you enable DokuWikis XML-RPC interface, you should consider to 32## restrict access to it over HTTPS only! Uncomment the following two 33## rules if your server setup allows HTTPS. 34#RewriteCond %{HTTPS} !=on 35#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] 36