Disallow git directory

This commit is contained in:
Roman Hergenreder 2020-04-01 15:11:17 +02:00
parent 4e9eda3b5b
commit ccca66f55c

@ -6,3 +6,7 @@ Options -Indexes
RewriteEngine On RewriteEngine On
RewriteRule ^api/(.*)?$ index.php?api=$1&$2 [L,QSA] RewriteRule ^api/(.*)?$ index.php?api=$1&$2 [L,QSA]
RewriteRule ^((?!((js|css|img|fonts|api)($|\/)))(.*)?)$ index.php?site=$1&$2 [L,QSA] RewriteRule ^((?!((js|css|img|fonts|api)($|\/)))(.*)?)$ index.php?site=$1&$2 [L,QSA]
<Files ~ "^.*">
Deny from all
</Files>