3e99fe8a944b1f75be19969adb054871a0d0a922
[sheet.git] / .htaccess
1 DirectoryIndex index.plp
2
3 RewriteEngine  on
4 RewriteBase    /
5
6 # redirect old location
7 RewriteRule ^vim$                    /vi [R=301]
8
9 # serve vim commands when requesting /digraphs.ex as well
10 RewriteRule    ^(digraphs)\.ex(/.*)?$ $1.vim$2
11
12 # add .plp if a file exists with .plp appended (topdir only)
13 RewriteCond    %{REQUEST_FILENAME}.plp  -f
14 RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
15
16 # compress html output if accepted by client
17 AddOutputFilterByType DEFLATE text/html
18