make .git inaccessible via web

This commit is contained in:
Max Mehl
2023-06-14 13:39:19 +02:00
parent 6109429b21
commit d8aba80029

View File

@@ -8,3 +8,6 @@ RewriteRule ^([^/]+)/?$ /index.php?m=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?m=$1&t=$2 [L]
# Hide .git on webserver
RedirectMatch 404 /\.git