1 DirectoryIndex index.plp
6 # redirect from old vim-only subdomain
7 RewriteCond %{HTTP_HOST} ^vim?\.shiar\.\w+$
8 RewriteRule ^(vi(?=m$)|.*) http://sheet.shiar.nl/$1 [R=301]
10 # redirect old locations
11 RewriteRule ^vim$ /vi [R=301]
12 RewriteRule ^cc$ /countries [R=301]
14 # serve vim commands when requesting /digraphs.ex as well
15 RewriteRule ^(digraphs)\.ex(/.*)?$ $1.vim$2
17 # add .plp if a file exists with .plp appended (topdir only)
18 RewriteCond %{REQUEST_FILENAME}.plp -f
19 RewriteRule ^/*([^/]+)(.*) $1.plp$2
21 # compress html output if accepted by client
22 AddOutputFilterByType DEFLATE text/html