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