DirectoryIndex index.php5 index.php Require all denied Deny from all 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}).*$ 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] ExpiresActive On Header set Cache-Control "public, max-age=2629743" ExpiresDefault "access plus 1 month" #ExpiresByType text/html "now" #ExpiresByType text/plain "now" AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css AddOutputFilterByType DEFLATE application/x-javascript application/javascript AddType audio/mp4 f4a f4b m4a AddType audio/ogg oga ogg opus AddType image/jpeg jpg jpeg AddType image/bmp bmp AddType image/svg+xml svg svgz AddType image/x-icon ico ani cur AddType image/webp webp AddType video/mp4 f4v f4p m4v mp4 AddType video/ogg ogv AddType video/webm webm AddType video/x-flv flv