better display of description and time for a single photo
[photo-tags.git] / htaccess_template
index 2e94f89783acb0fb7de03008e6ad7a729ef62570..93e932c420bb77725ba8aa38ab0673b1b1963256 100644 (file)
@@ -1,10 +1,34 @@
+
+#    copyright 2012,2013 Arun Persaud <arun@nubati.net>
+#
+#    This file is part of photo-tags.
+#
+#    Photo-tags is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    Photo-tags is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with Photo-tags.  If not, see <http://www.gnu.org/licenses/>.
+
 <IfModule mod_rewrite.c>
 RewriteEngine on
 
 RewriteBase   /<insert web base url here>
 
+# 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]
 
-# make the url nice and clean; the comments shows an url that should be matched
+
+### 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 +45,5 @@ RewriteRule pic/([0-9]*) index.php?pic=$1 [L]
 # web_base/page/4
 RewriteRule page/([0-9]*) index.php?page=$1 [L]
 
+
 </IfModule>