Merge pull request #4285 from dokuwiki/bot/autofix
[dokuwiki.git] / .htaccess.dist
blob3e96a838892a9a9fa7c9b9356f785a76879a2848
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_core.c>
8         Require all denied
9     </IfModule>
10     <IfModule !mod_authz_core.c>
11         Order allow,deny
12         Deny from all
13     </IfModule>
14 </Files>
16 ## Don't allow access to git directories
17 <IfModule alias_module>
18     RedirectMatch 404 /\.git
19 </IfModule>
21 ## Uncomment these rules if you want to have nice URLs using
22 ## $conf['userewrite'] = 1 - not needed for rewrite mode 2
23 #RewriteEngine on
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]