common: fix utf8 io layer of cgi output
[sheet.git] / .htaccess
1 DirectoryIndex index.plp
2
3 RewriteEngine  on
4 RewriteBase    /
5
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]
9
10 # redirect old locations
11 RewriteRule ^vim$                    /vi [R=301]
12 RewriteRule ^cc$                     /countries [R=301]
13
14 # serve vim commands when requesting /digraphs.ex as well
15 RewriteRule    ^(digraphs)\.ex(/.*)?$ $1.vim$2
16
17 # add .plp if a file exists with .plp appended (topdir only)
18 RewriteCond    %{REQUEST_FILENAME}.plp  -f
19 RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
20
21 # compress html output if accepted by client
22 AddOutputFilterByType DEFLATE text/html
23