From: short <>
Date: Fri, 16 Dec 2005 04:40:49 +0000 (+0000)
Subject: Untested draft for: cvs.jankratochvil.net
X-Git-Url: https://git.jankratochvil.net/?p=cvs.jankratochvil.net.git;a=commitdiff_plain;h=9b96eca232f28ade8dbbc30f9ed5406c916b3970
Untested draft for: cvs.jankratochvil.net
---
9b96eca232f28ade8dbbc30f9ed5406c916b3970
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/