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 # allow browsers to cache for upto a month
23 <IfModule headers_module>
24 <FilesMatch "\.(?:css|js|json)$">
25 Header set Cache-Control "max-age=2592000"
26 Header set Access-Control-Allow-Origin "*"