DirectoryIndex _NOTEXISTS
Options None
# Prevent: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
Options +SymLinksIfOwnerMatch
# 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
RewriteEngine on
RewriteRule ^favicon[.]ico$ /My/Status.pm?code=404 [P,L]
RewriteRule ^(My)(|/.*)$ http://www.jankratochvil.net/$1$2?${unescape:%{QUERY_STRING}} [R=301,L]
RewriteRule ^/*IndexCVS[.]pm$ /?${unescape:%{QUERY_STRING}} [R=301,L]
RewriteRule ^/*$ http://localhost:7680/IndexCVS.pm [P,L]
Options +ExecCGI
SetHandler cgi-script