protect .git directory from being served

This commit is contained in:
Remy Sharp 2013-03-07 12:22:55 +00:00
parent c1b7bf4f05
commit f79088a9cf

View file

@ -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]