]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/Document_redirections_for_use_with_usedirs.mdwn
add rewriteriles for rss and atom feeds
[ikiwiki.git] / doc / todo / Document_redirections_for_use_with_usedirs.mdwn
index 56b0d5890a576e92631fa0370a0b11c815e5d6d7..2ed4c684a16f3ebccd9af5f586f8e529a65aecfc 100644 (file)
@@ -13,7 +13,14 @@ Now that ikiwiki supports using page/index.html rather than page.html, how about
        RewriteCond $1 !^/cgi-bin/
        RewriteCond $1 !.*/index$
        RewriteRule (.+).html $1/ [R]
-
+       
+       RewriteCond $1 !^/~
+       RewriteCond $1 !.*/index$
+       RewriteRule (.+).rss $1/index.rss
+       
+       RewriteCond $1 !^/~
+       RewriteCond $1 !.*/index$
+       RewriteRule (.+).atom $1/index.atom
 
 >> Nice solution.  I think this would work for a newly-converted wiki as well,
 >> using a condition to limit rewrites to that wiki's directory, and the