2 DirectoryIndex index.plp
3 Action plp-document /PLP_COMMON/plp.cgi
8 # redirect from old vim-only subdomain
9 RewriteCond %{HTTP_HOST} ^vim?\.shiar\.\w+$
10 RewriteRule ^(vi(?=m$)|.*) http://sheet.shiar.nl/$1 [R=301]
12 # redirect old locations
13 RewriteRule ^vim$ /vi [R=301]
14 RewriteRule ^cc$ /countries [R=301]
16 # serve vim commands when requesting /digraphs.ex as well
17 RewriteRule ^(digraphs)\.ex(/.*)?$ $1.vim$2
19 # add .plp if a file exists with .plp appended (topdir only)
20 RewriteCond %{REQUEST_FILENAME}.plp -f
21 RewriteRule ^/*([^/]+)(.*) $1.plp$2
23 # compress html output if accepted by client
24 <IfModule deflate_module>
25 AddOutputFilterByType DEFLATE text/html