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