add rule to hide .git file
authorArun Persaud <arun@nubati.net>
Sun, 3 Jun 2012 16:18:10 +0000 (09:18 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 3 Jun 2012 16:18:10 +0000 (09:18 -0700)
htaccess_template

index 2e94f89783acb0fb7de03008e6ad7a729ef62570..aa6f5a762375599b0ea26bca5ac04882339aa6ce 100644 (file)
@@ -3,6 +3,9 @@ RewriteEngine on
 
 RewriteBase   /<insert web base url here>
 
+# 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]
 
+
 </IfModule>