more bootstrap integration, cleanup and some small bugfixes
[photo-tags.git] / htaccess_template
index 2e94f89783acb0fb7de03008e6ad7a729ef62570..d4ba12add087bbc0fff201d270ba4fb765aae06c 100644 (file)
@@ -3,8 +3,14 @@ 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
+# use autoversioning of js and css files
+RewriteRule ^(.*)\.[[:xdigit:]]{32}\.(css|js)$ $1.$2 [L]
+
+
+### make the url nice and clean; the comments shows an url that should be matched
 
 # web_base/tag/me+berlin/pic/id
 RewriteRule tag/([-_\s,a-zA-Z0-9+]*)/pic/([0-9]*) index.php?tag=$1&pic=$2 [L]
@@ -21,4 +27,5 @@ RewriteRule pic/([0-9]*) index.php?pic=$1 [L]
 # web_base/page/4
 RewriteRule page/([0-9]*) index.php?page=$1 [L]
 
+
 </IfModule>