Some vellum.cz settings
[www.jankratochvil.net.git] / .htaccess
1 DirectoryIndex index.html
2
3 AddType text/html .shtml
4 AddHandler server-parsed .shtml
5 AddType "text/html; charset=iso-8859-2" .html
6 AddType "text/html; charset=iso-8859-2" .shtml
7 AddType "text/plain; charset=iso-8859-2" .txt
8 AddType "text/plain; charset=iso-8859-2" .asc
9 Options Indexes Includes FollowSymLinks
10 <FilesMatch "\.(gz|Z|bz|bz2|zip)$">
11         RemoveEncoding .gz .Z .bz .bz2 .zip
12         AddType application/x-gzip .gz
13         AddType application/x-compress .Z
14         AddType application/x-bzip .bz
15         AddType application/x-bzip2 .bz2
16         AddType application/zip .zip
17 </FilesMatch>
18
19 AddHandler cgi-script .cgi
20 IndexOptions NameWidth=*
21 AddType application/x-rpm .rpm
22 AddType application/x-nokia-9000-communicator-add-on-software .aos
23 php_flag short_open_tag off
24 php_flag magic_quotes_gpc off
25 php_flag magic_quotes_runtime off
26
27 <Files "kocky">
28         RewriteEngine on
29         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?kocky/*(.*)$ http://kocky.vellum.cz/$2 [R=301] [L]
30 </Files>
31 <Files "4c">
32         RewriteEngine on
33         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?4c/*(.*)$ http://4c.jankratochvil.net/$2 [R=301] [L]
34 </Files>
35 <Files "cgi">
36         RewriteEngine on
37         #            $1                                                  $2$3    $4
38         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/viewcvs(/(.*))?([?].*)?$ http://cvs.jankratochvil.net/viewcvs/$3$4 [R=301] [L]
39         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/*(.*)$ http://www.jankratochvil.net/cgi-bin/$2 [R=301] [L]
40 </Files>
41 <Files "sw">
42         RewriteEngine on
43         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?sw/*(.*)$ http://www.jankratochvil.net/project/$2 [R=301] [L]
44 </Files>