This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/.htaccess
shish 89b54ad6c7 default win32 LAMP doesn't set this. Note .php5 before .php as some hosts require it, and it does no harm
git-svn-id: file:///home/shish/svn/shimmie2/trunk@116 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-17 15:15:58 +00:00

17 lines
640 B
ApacheConf

<IfModule mod_dir.c>
DirectoryIndex index.php5 index.php
</IfModule>
<IfModule mod_rewrite.c>
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]
</IfModule>