Skip to content

Commit

Permalink
protect .git directory from being served
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Mar 7, 2013
1 parent c1b7bf4 commit f79088a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f79088a

Please sign in to comment.