block access to the .git directory
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Block access to .git directory
|
||||
RewriteRule .*\.git/.* - [L,R=404]
|
||||
|
||||
# Force HTTPS
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
Reference in New Issue
Block a user