diff --git a/.htaccess b/.htaccess index 65578e2356..b6d4eecc33 100644 --- a/.htaccess +++ b/.htaccess @@ -9,8 +9,8 @@ Deny from all RewriteEngine on - # Protect dot directories from browsing, e.g. ".git" - RewriteRule "(^|/)\." - [F] + # Protect repo directory from browsing + RewriteRule "(^|/)\.git" - [F] # Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f