Generalized: &a_href_cz -> &a_href_cc
[www.jankratochvil.net.git] / .htaccess
1 <IfModule mod_dir.c>
2         DirectoryIndex _NOTEXISTS
3         IndexOptions NameWidth=*
4 </IfModule>
5
6 Options None
7 <IfModule !mod_perl.c>
8         Options +Indexes
9         # For "*.shtml" as "./project/Islet/Islet/Islet.shtml" etc.
10         Options +Includes
11         # Prevent: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
12         Options +SymLinksIfOwnerMatch
13 </IfModule>
14
15 AddHandler server-parsed .shtml
16 AddHandler cgi-script .cgi
17
18 AddType "text/html; charset=us-ascii" .html
19 AddType "text/html; charset=us-ascii" .shtml
20 AddType "text/plain; charset=us-ascii" .txt
21 AddType "text/plain; charset=us-ascii" .asc
22 AddType application/x-rpm .rpm
23 AddType application/x-nokia-9000-communicator-add-on-software .aos
24
25 RemoveEncoding .gz .Z .bz .bz2 .zip
26 AddType application/x-gzip .gz
27 AddType application/x-compress .Z
28 AddType application/x-bzip .bz
29 AddType application/x-bzip2 .bz2
30 AddType application/zip .zip
31
32 <IfModule mod_php.c>
33         php_flag short_open_tag off
34         php_flag magic_quotes_gpc off
35         php_flag magic_quotes_runtime off
36 </IfModule>
37
38 <IfModule mod_rewrite.c>
39         # Do not: [R=301] [L]
40         # as any non-1st brackets' contents would get ignored!
41         RewriteEngine on
42         RewriteRule ^kocky(|/.*)$ http://kocky.vellum.cz/$1 [R=301,L]
43         RewriteRule ^(4cinfo|4c)(|/.*)$ http://4c.jankratochvil.net/$2 [R=301,L]
44         RewriteRule ^sw(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L]
45         RewriteRule ^projects(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L]
46         <IfModule !mod_perl.c>
47                 RewriteRule ^(.*)[.]html[.]pl$ http://%{SERVER_NAME}/$1.pm [R=301,L]
48                 RewriteRule ^(.*?)/+Index[.]pm$ http://%{SERVER_NAME}/$1/ [R=301,L]
49                 RewriteCond %{REQUEST_FILENAME}/Index.pm -f
50                 RewriteRule ^(.*?)/+$ http://localhost:7680/$1/Index.pm [P,L]
51                 RewriteRule ^(.*[.]pm)$ http://localhost:7680/$1 [P,L]
52         </IfModule>
53 </IfModule>