Change FilesMatch to Files

This commit is contained in:
Sruu.pl
2018-04-26 23:13:29 +02:00
committed by GitHub
parent 29f96c0c8f
commit 7df4923d9a

View File

@@ -2,7 +2,7 @@
Options -Indexes
# Prevent visitors from viewing files directly
<FilesMatch "\.(sdb|md|html|txt)$">
<Files "\.(sdb|md|html|txt)$">
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
@@ -11,7 +11,7 @@ Options -Indexes
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>
</Files>
# URL rewrites
<IfModule mod_rewrite.c>
@@ -20,4 +20,4 @@ Options -Indexes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
</IfModule>