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