latin: rgbmap row of regular colour mix svg
[sheet.git] / .htaccess
1 Options        -MultiViews
2 DirectoryIndex index.plp
3
4 RewriteEngine  on
5 RewriteBase    /
6
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]
10
11 # redirect old locations
12 RewriteRule ^vim$                    /vi [R=301]
13 RewriteRule ^cc$                     /countries [R=301]
14
15 # serve vim commands when requesting /digraphs.ex as well
16 RewriteRule    ^(digraphs)\.ex(/.*)?$ $1.vim$2
17
18 # add .plp if a file exists with .plp appended (topdir only)
19 RewriteCond    %{REQUEST_FILENAME}.plp  -f
20 RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
21
22 # compress html output if accepted by client
23 <IfModule deflate_module>
24 AddOutputFilterByType DEFLATE text/html
25 </IfModule>
26
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"
31 </FilesMatch>
32 </IfModule>
33