ansible-roles/roles/dokuwiki/templates/htaccess.j2
2021-12-01 19:13:34 +01:00

18 lines
631 B
Django/Jinja

<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
Require all denied
</Files>
<IfModule alias_module>
RedirectMatch 404 /\.git
</IfModule>
RewriteEngine on
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