1
0
mirror of https://github.com/insomniafi/extra synced 2025-10-13 16:03:22 +00:00

Deny access to directories

This commit is contained in:
Christer Warén
2025-10-09 15:40:17 +03:00
parent 06ce9273d4
commit e2ea113e05

View File

@@ -11,3 +11,13 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [NC,L,QSA]
</IfModule>
<IfModule mod_autoindex.c>
IndexIgnore */*
Options -Indexes
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 ^/.git(/.*)?$
RedirectMatch 403 ^/datastore(/.*)?$
</IfModule>