2006-01-21 12:34:38 +01:00
|
|
|
## You should disable Indexes and MultiViews either here or in the
|
2006-03-02 14:55:49 +01:00
|
|
|
## global config. Symlinks maybe needed for URL rewriting.
|
|
|
|
#Options -Indexes -MultiViews +FollowSymLinks
|
2005-05-04 20:14:47 +02:00
|
|
|
|
2010-06-26 18:25:41 +02:00
|
|
|
## make sure nobody gets the htaccess, README, COPYING or VERSION files
|
|
|
|
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
|
2018-06-17 16:48:11 +02:00
|
|
|
<IfModule mod_authz_core.c>
|
2015-12-07 15:20:20 +01:00
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
2018-06-17 16:48:11 +02:00
|
|
|
<IfModule !mod_authz_core.c>
|
2015-12-07 15:20:20 +01:00
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
2005-01-14 22:44:50 +01:00
|
|
|
</Files>
|
|
|
|
|
2016-02-19 13:23:17 +01:00
|
|
|
## Don't allow access to git directories
|
|
|
|
<IfModule alias_module>
|
|
|
|
RedirectMatch 404 /\.git
|
|
|
|
</IfModule>
|
|
|
|
|
2006-05-30 13:47:18 +02:00
|
|
|
## Uncomment these rules if you want to have nice URLs using
|
2007-01-28 22:58:56 +01:00
|
|
|
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
|
2005-01-14 22:44:50 +01:00
|
|
|
#RewriteEngine on
|
2006-05-30 13:47:18 +02:00
|
|
|
#
|
2013-02-16 16:12:04 +01:00
|
|
|
#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
|
|
|
|
#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
|
|
|
|
#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
|
|
|
|
#RewriteRule ^$ doku.php [L]
|
|
|
|
#RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
#RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
#RewriteRule (.*) doku.php?id=$1 [QSA,L]
|
|
|
|
#RewriteRule ^index.php$ doku.php
|
|
|
|
#
|
|
|
|
## Not all installations will require the following line. If you do,
|
2006-05-30 13:47:18 +02:00
|
|
|
## change "/dokuwiki" to the path to your dokuwiki directory relative
|
|
|
|
## to your document root.
|
|
|
|
#RewriteBase /dokuwiki
|
|
|
|
#
|
2008-03-12 13:22:50 +01:00
|
|
|
## If you enable DokuWikis XML-RPC interface, you should consider to
|
|
|
|
## restrict access to it over HTTPS only! Uncomment the following two
|
|
|
|
## rules if your server setup allows HTTPS.
|
|
|
|
#RewriteCond %{HTTPS} !=on
|
|
|
|
#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
|