From f79088a9cfe2d83dd4231db43fc1f207d8c88097 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 7 Mar 2013 12:22:55 +0000 Subject: [PATCH] protect .git directory from being served --- .htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index 274d64cd..5f23f4fe 100644 --- a/.htaccess +++ b/.htaccess @@ -5,6 +5,8 @@ Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteBase / +RewriteRule "(^|/)(CVS|\.svn|\.git)/" - [F] + # strip www. from the domain RewriteCond %{HTTP_HOST} ^www\.mit-license\.org$ [NC] RewriteRule ^(.*)$ http://mit-license.org/$1 [R=301,L]