summaryrefslogtreecommitdiffstats
path: root/htaccess_template
diff options
context:
space:
mode:
Diffstat (limited to 'htaccess_template')
-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>