2 DirectoryIndex index.plp
7 # redirect from old vim-only subdomain
8 RewriteCond %{HTTP_HOST} ^vim?\.shiar\.\w+$
9 RewriteRule ^(vi(?=m$)|.*) http://sheet.shiar.nl/$1 [R=301]
11 # redirect old locations
12 RewriteRule ^vim$ /vi [R=301]
13 RewriteRule ^cc$ /countries [R=301]
15 # serve vim commands when requesting /digraphs.ex as well
16 RewriteRule ^(digraphs)\.ex(/.*)?$ $1.vim$2
18 # add .plp if a file exists with .plp appended (topdir only)
19 RewriteCond %{REQUEST_FILENAME}.plp -f
20 RewriteRule ^/*([^/]+)(.*) $1.plp$2
22 # compress html output if accepted by client
23 <IfModule deflate_module>
24 AddOutputFilterByType DEFLATE text/html
27 # allow browsers to cache for upto a month
28 <IfModule headers_module>
29 <FilesMatch "\.(?:css|js)$">
30 Header set Cache-Control "max-age=2592000"