Minor wording.
[www.jankratochvil.net.git] / .htaccess
1 DirectoryIndex Index.html.pl
2
3 AddType text/html .shtml
4 AddHandler server-parsed .shtml
5 AddType "text/html; charset=us-ascii" .html
6 AddType "text/html; charset=us-ascii" .shtml
7 AddType "text/plain; charset=us-ascii" .txt
8 AddType "text/plain; charset=us-ascii" .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 <IfModule mod_php4.c>
24         php_flag short_open_tag off
25         php_flag magic_quotes_gpc off
26         php_flag magic_quotes_runtime off
27 </IfModule>
28
29 <Files "kocky">
30         RewriteEngine on
31         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?kocky/*(.*)$ http://kocky.vellum.cz/$2 [R=301] [L]
32 </Files>
33 <FilesMatch "^(4c|4cinfo)$">
34         RewriteEngine on
35         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?(4cinfo|4c)/*(.*)$ http://4c.jankratochvil.net/$3 [R=301] [L]
36 </FilesMatch>
37 <Files "cgi">
38         RewriteEngine on
39         #            $1                                                  $2$3    $4
40         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/viewcvs(/(.*))?([?].*)?$ http://cvs.jankratochvil.net/viewcvs/$3$4 [R=301] [L]
41         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/*(.*)$ http://www.jankratochvil.net/cgi-bin/$2 [R=301] [L]
42 </Files>
43 <Files "sw">
44         RewriteEngine on
45         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?sw/*(.*)$ http://www.jankratochvil.net/project/ [R=301] [L]
46 </Files>
47 <Files "projects">
48         RewriteEngine on
49         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?projects/*(.*)$ http://www.jankratochvil.net/project/$2 [R=301] [L]
50 </Files>
51
52 <IfDefine SSL>
53         <Files "*.pl">
54                 RewriteEngine on
55                 RewriteRule ^.*?/www[.]jankratochvil[.]net/(.*)$ http://localhost:7680/$1 [P]
56         </Files>
57 </IfDefine>
58 <IfDefine !SSL>
59         Options +ExecCGI
60 </IfDefine>