summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-06-03 09:18:10 -0700
committerArun Persaud <arun@nubati.net>2012-06-03 09:18:10 -0700
commit20cba444993baea357308bf746d3675438c548bc (patch)
tree5383bf86db81e862d8a7b11e0eb6964a8b40df03
parent38b5ad75e982faf18fed12c3351cc7d29954f7f5 (diff)
downloadphoto-tags-20cba444993baea357308bf746d3675438c548bc.tar.gz
photo-tags-20cba444993baea357308bf746d3675438c548bc.tar.bz2
photo-tags-20cba444993baea357308bf746d3675438c548bc.zip
add rule to hide .git file
-rw-r--r--htaccess_template4
1 files changed, 4 insertions, 0 deletions
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 /<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>