mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-11 00:12:04 +01:00
24 lines
576 B
ApacheConf
24 lines
576 B
ApacheConf
# Prevent directory listings
|
|
Options -Indexes
|
|
|
|
# Prevent visitors from viewing files directly
|
|
<Files ~ "^.*\.(sdb|md|html|txt)$">
|
|
<IfModule !mod_authz_core.c>
|
|
Order allow,deny
|
|
Deny from all
|
|
Satisfy All
|
|
</IfModule>
|
|
<IfModule mod_authz_core.c>
|
|
Require all denied
|
|
</IfModule>
|
|
</Files>
|
|
|
|
# URL rewrites
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteRule ^(inc/|themes/|tmp/).*\.(php|html)$ - [F,L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^ index.php [L]
|
|
</IfModule>
|