Permalink
Browse files

protect .git directory from being served

  • Loading branch information...
remy committed Mar 7, 2013
1 parent c1b7bf4 commit f79088a9cfe2d83dd4231db43fc1f207d8c88097
Showing with 2 additions and 0 deletions.
  1. +2 −0 .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]

0 comments on commit f79088a

Please sign in to comment.