mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
protect .git directory from being served
This commit is contained in:
parent
c1b7bf4f05
commit
f79088a9cf
1 changed files with 2 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue