-<Files "kocky">
- RewriteEngine on
- RewriteRule ^(/home/short/www/www.jankratochvil.net/)?kocky/*(.*)$ http://kocky.vellum.cz/$2 [R=301] [L]
-</Files>
-<Files "4c">
- RewriteEngine on
- RewriteRule ^(/home/short/www/www.jankratochvil.net/)?4c/*(.*)$ http://4c.jankratochvil.net/$2 [R=301] [L]
-</Files>
-<Files "cgi">
- RewriteEngine on
- # $1 $2$3 $4
- RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/viewcvs(/(.*))?([?].*)?$ http://cvs.jankratochvil.net/viewcvs/$3$4 [R=301] [L]
- RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/*(.*)$ http://www.jankratochvil.net/cgi-bin/$2 [R=301] [L]
-</Files>
-<Files "sw">
+RemoveEncoding .gz .Z .bz .bz2 .zip
+AddType application/x-gzip .gz
+AddType application/x-compress .Z
+AddType application/x-bzip .bz
+AddType application/x-bzip2 .bz2
+AddType application/zip .zip
+
+# Do not: text/javascript
+# as it does not look as registered, at least according to: MIME::Types $VERSION 1.15
+# "application/javascript" so far standardized till 2005-12-08 by:
+# http://www.ietf.org/internet-drafts/draft-hoehrmann-script-types-03.txt
+AddType application/javascript .js
+
+<IfModule mod_php.c>
+ php_flag short_open_tag off
+ php_flag magic_quotes_gpc off
+ php_flag magic_quotes_runtime off
+</IfModule>
+
+<IfModule mod_rewrite.c>
+ # Do not: [R=301] [L]
+ # as any non-1st brackets' contents would get ignored!
+ # Use always suffix: ?${unescape:%{QUERY_STRING}}
+ # as $QUERY_STRING gets otherwise double-escaped (or if "NE" the path gets unescaped).
+ # FIXME: Should be applied also for the "P" rules?
+ # WARNING: Requires server/virtualhost definition: RewriteMap unescape int:unescape