mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +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
|
RewriteEngine On
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
|
|
||||||
|
RewriteRule "(^|/)(CVS|\.svn|\.git)/" - [F]
|
||||||
|
|
||||||
# strip www. from the domain
|
# strip www. from the domain
|
||||||
RewriteCond %{HTTP_HOST} ^www\.mit-license\.org$ [NC]
|
RewriteCond %{HTTP_HOST} ^www\.mit-license\.org$ [NC]
|
||||||
RewriteRule ^(.*)$ http://mit-license.org/$1 [R=301,L]
|
RewriteRule ^(.*)$ http://mit-license.org/$1 [R=301,L]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue