Files
Batflat/.htaccess

24 lines
571 B
ApacheConf
Raw Permalink Normal View History

2018-03-12 13:23:44 +01:00
# Prevent directory listings
Options -Indexes
# Prevent visitors from viewing files directly
2018-04-26 23:13:29 +02:00
<Files "\.(sdb|md|html|txt)$">
2018-03-12 13:23:44 +01:00
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
2018-04-26 23:13:29 +02:00
</Files>
2018-03-12 13:23:44 +01:00
# 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]
2018-04-26 23:13:29 +02:00
</IfModule>