From 20cba444993baea357308bf746d3675438c548bc Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 3 Jun 2012 09:18:10 -0700 Subject: add rule to hide .git file --- htaccess_template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htaccess_template b/htaccess_template index 2e94f89..aa6f5a7 100644 --- a/htaccess_template +++ b/htaccess_template @@ -3,6 +3,9 @@ RewriteEngine on RewriteBase / +# hide git directory (and others) +RedirectMatch 404 \.(git|cvs|svn|bzr|hg)(/.*|$) + # make the url nice and clean; the comments shows an url that should be matched @@ -21,4 +24,5 @@ RewriteRule pic/([0-9]*) index.php?pic=$1 [L] # web_base/page/4 RewriteRule page/([0-9]*) index.php?page=$1 [L] + -- cgit v1.2.3-18-g5258