Prevent .git being served by Webserver

Securitything:
Prevent .git-directory being served/exposed
This commit is contained in:
Joerg
2023-06-30 07:01:03 +02:00
committed by GitHub
parent b1a535b259
commit 131abcce7d

View File

@@ -10,3 +10,5 @@ RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
RedirectMatch 404 ^/\.git