2nd attempt at denying .git directory
[website] / .htaccess
index 3d3a1b9..e0a8020 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -4,5 +4,7 @@ AddType text/html .template
 AddOutputFilter INCLUDES .template
 
 # deny access to the toplevel .git directory
-RewriteEngine On
-RewriteRule \.git - [F,L]
+<Directory .git>
+        Order Deny,Allow
+        Deny from All
+</Directory>