summaryrefslogtreecommitdiffstats
path: root/htaccess.template
diff options
context:
space:
mode:
Diffstat (limited to 'htaccess.template')
-rw-r--r--htaccess.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/htaccess.template b/htaccess.template
new file mode 100644
index 0000000..351842c
--- /dev/null
+++ b/htaccess.template
@@ -0,0 +1,10 @@
+RewriteEngine on
+
+# need to set this to your web path
+RewriteBase /<web path to your files>
+
+# hide git directory (and others)
+RedirectMatch 404 \.(git|cvs|svn|bzr|hg)(/.*|$)
+
+# use autoversioning of js and css files
+RewriteRule ^(.*)\.[[:xdigit:]]{32}\.(css|js)$ $1.$2 [L]