Untested draft for: cvs.jankratochvil.net
authorshort <>
Fri, 16 Dec 2005 04:40:49 +0000 (04:40 +0000)
committershort <>
Fri, 16 Dec 2005 04:40:49 +0000 (04:40 +0000)
.htaccess [new file with mode: 0644]
robots.txt [new file with mode: 0644]

diff --git a/.htaccess b/.htaccess
new file mode 100644 (file)
index 0000000..6bb24d0
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,24 @@
+<IfModule mod_dir.c>
+       DirectoryIndex _NOTEXISTS
+</IfModule>
+
+Options None
+<IfModule !mod_perl.c>
+       # Prevent: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
+       Options +SymLinksIfOwnerMatch
+</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
+       <IfModule !mod_perl.c>
+               RewriteEngine on
+               RewriteRule ^favicon[.]ico$ /My/Status.pm?code=404 [P,L]
+               RewriteRule ^/*IndexCVS[.]pm$ /?${unescape:%{QUERY_STRING}} [R=301,L]
+               RewriteRule ^/*$ http://localhost:7680/IndexCVS.pm [P,L]
+       </IfModule>
+</IfModule>
diff --git a/robots.txt b/robots.txt
new file mode 100644 (file)
index 0000000..488100a
--- /dev/null
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /viewcvs/