<IfModule mod_rewrite.c>
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