htaccess: Block access to .git directory

Refs flarum/core#632.
pull/36/head
Franz Liedke 2016-04-23 17:08:16 +09:00
parent cc8e9aa6e6
commit 7e17408634
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
RewriteRule ^vendor/(.*)?$ / [F,L]
RewriteRule ^storage/(.*)?$ / [F,L]
RewriteRule ^config.php$ / [F,L]
RewriteRule ^.git/(.*)?$ / [F,L]
RewriteRule ^api(.*)$ api.php [QSA,L]
RewriteRule ^admin(.*)$ admin.php [QSA,L]