update page meta descriptions
[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 location
11 RewriteRule ^vim$                    /vi [R=301]
12
13 # serve vim commands when requesting /digraphs.ex as well
14 RewriteRule    ^(digraphs)\.ex(/.*)?$ $1.vim$2
15
16 # add .plp if a file exists with .plp appended (topdir only)
17 RewriteCond    %{REQUEST_FILENAME}.plp  -f
18 RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
19
20 # compress html output if accepted by client
21 AddOutputFilterByType DEFLATE text/html
22