auto-versioning for js and css files. Needs .htaccess to be installed
[e-DoKo.git] / htaccess.template
diff --git a/htaccess.template b/htaccess.template
new file mode 100644 (file)
index 0000000..351842c
--- /dev/null
@@ -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]