]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/tips/redirections_for_usedirs.mdwn
updated branch; this is ready for review for inclusion in IkIWiki
[git.ikiwiki.info.git] / doc / tips / redirections_for_usedirs.mdwn
index 2913691f0c27a4df7f933afa17dbd00f0b23e25f..29a76b24c2b40449012f2b67a7121d68391a435c 100644 (file)
@@ -1,5 +1,11 @@
+[[!meta date="2007-04-11 01:17:05 +0000"]]
+
 Want to turn on the `usedirs` setting on an existing wiki without breaking
-all the links into it? Here's a way to do it for Apache, using the
+all the links into it?
+
+#Apache and RewriteEngine
+
+Here's a way to do it for Apache, using the
 RewriteEngine. This example is for a wiki at the top of a web site, but can
 be adapted to other situations.
 
@@ -21,6 +27,8 @@ be adapted to other situations.
        RewriteCond $1 !.*/index$
        RewriteRule (.+).atom$ $1/index.atom
 
+#lighttpd and mod_redirect
+
 The following example is exactly the same thing written for lighttpd by using mod_redirect:
 
     $HTTP["url"] !~ "^/(~|doc/|ajaxterm|cgi-bin/)" {
@@ -30,4 +38,4 @@ The following example is exactly the same thing written for lighttpd by using mo
           "(.*)\.(atom|rss)$" => "$1/index.$2"     
         )
       } 
-    } 
\ No newline at end of file
+    }