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