-DirectoryIndex index.html
+DirectoryIndex Index.html.pl
AddType text/html .shtml
AddHandler server-parsed .shtml
IndexOptions NameWidth=*
AddType application/x-rpm .rpm
AddType application/x-nokia-9000-communicator-add-on-software .aos
-php_flag short_open_tag off
-php_flag magic_quotes_gpc off
-php_flag magic_quotes_runtime off
+<IfModule mod_php4.c>
+ php_flag short_open_tag off
+ php_flag magic_quotes_gpc off
+ php_flag magic_quotes_runtime off
+</IfModule>
<Files "kocky">
RewriteEngine on
RewriteRule ^(/home/short/www/www.jankratochvil.net/)?kocky/*(.*)$ http://kocky.vellum.cz/$2 [R=301] [L]
</Files>
-<Files "4c">
+<FilesMatch "^(4c|4cinfo)$">
RewriteEngine on
- RewriteRule ^(/home/short/www/www.jankratochvil.net/)?4c/*(.*)$ http://4c.jankratochvil.net/$2 [R=301] [L]
-</Files>
+ RewriteRule ^(/home/short/www/www.jankratochvil.net/)?(4cinfo|4c)/*(.*)$ http://4c.jankratochvil.net/$3 [R=301] [L]
+</FilesMatch>
<Files "cgi">
RewriteEngine on
# $1 $2$3 $4
RewriteEngine on
RewriteRule ^(/home/short/www/www.jankratochvil.net/)?sw/*(.*)$ http://www.jankratochvil.net/project/ [R=301] [L]
</Files>
+<Files "projects">
+ RewriteEngine on
+ RewriteRule ^(/home/short/www/www.jankratochvil.net/)?projects/*(.*)$ http://www.jankratochvil.net/project/$2 [R=301] [L]
+</Files>
+
+<IfDefine SSL>
+ <Files "*.pl">
+ RewriteEngine on
+ RewriteRule ^.*?/www[.]jankratochvil[.]net/(.*)$ http://localhost:7680/$1 [P]
+ </Files>
+</IfDefine>
+<IfDefine !SSL>
+ Options +ExecCGI
+</IfDefine>