From 54acefbb99f678e964624a58a3245a68d78f0e54 Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 17 May 2007 14:27:46 +0000 Subject: [PATCH] include .htaccess by default git-svn-id: file:///home/shish/svn/shimmie2/trunk@114 7f39781d-f577-437e-ae19-be835c7a54ca --- .htaccess | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..cf377cec --- /dev/null +++ b/.htaccess @@ -0,0 +1,12 @@ +RewriteEngine on + +# rather than link to images/ha/hash and have an ugly filename, +# we link to images/hash/tags.ext; mod_rewrite splits things so +# that shimmie sees hash and the user sees tags.ext +RewriteRule ^_images/([0-9a-f]{2})([0-9a-f]{30})/.*\.(.*)$ images/$1/$1$2 [L] +RewriteRule ^_thumbs/([0-9a-f]{2})([0-9a-f]{30})/.*\.jpg$ thumbs/$1/$1$2 [L] + +# any requests for files which don't physically exist should be handled by index.php +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php?q=$1&%{QUERY_STRING} [L] +