From 9b96eca232f28ade8dbbc30f9ed5406c916b3970 Mon Sep 17 00:00:00 2001
From: short <>
Date: Fri, 16 Dec 2005 04:40:49 +0000
Subject: [PATCH 1/1] Untested draft for: cvs.jankratochvil.net
---
.htaccess | 24 ++++++++++++++++++++++++
robots.txt | 2 ++
2 files changed, 26 insertions(+)
create mode 100644 .htaccess
create mode 100644 robots.txt
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..6bb24d0
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,24 @@
+
+ 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 ^/*IndexCVS[.]pm$ /?${unescape:%{QUERY_STRING}} [R=301,L]
+ RewriteRule ^/*$ http://localhost:7680/IndexCVS.pm [P,L]
+
+
diff --git a/robots.txt b/robots.txt
new file mode 100644
index 0000000..488100a
--- /dev/null
+++ b/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /viewcvs/
--
1.8.3.1