X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=blobdiff_plain;f=htaccess_template;h=d4ba12add087bbc0fff201d270ba4fb765aae06c;hp=2e94f89783acb0fb7de03008e6ad7a729ef62570;hb=cb822f5550deb1f1a904f9b94ee6bbe569c3e056;hpb=4297670a6158a584b9d8b3c04214ff2974fb645a diff --git a/htaccess_template b/htaccess_template index 2e94f89..d4ba12a 100644 --- a/htaccess_template +++ b/htaccess_template @@ -3,8 +3,14 @@ RewriteEngine on RewriteBase / +# 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] +