X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/30a1bf9e95b5e594e8e97b689b09b7d58385682e..d0764e86de15b0121d60b2fe5ffbcf9eeb4d7aff:/doc/todo/Document_redirections_for_use_with_usedirs.mdwn?ds=sidebyside diff --git a/doc/todo/Document_redirections_for_use_with_usedirs.mdwn b/doc/todo/Document_redirections_for_use_with_usedirs.mdwn deleted file mode 100644 index 2ed4c684a..000000000 --- a/doc/todo/Document_redirections_for_use_with_usedirs.mdwn +++ /dev/null @@ -1,29 +0,0 @@ -Now that ikiwiki supports using page/index.html rather than page.html, how about some mechanism to automatically generate a .htaccess file with "Redirect permanent" lines for each such page? - -> I was thinking of using an apache RewriteRule for this, haven't written -> one yet though. --[[Joey]] - -> Here's a RewriteRule that I'm using for , which -> has an wiki at the top level that's using index.htmls, and some -> other stuff that shouldn't be rewritten. - - RewriteCond $1 !^/~ - RewriteCond $1 !^/doc/ - RewriteCond $1 !^/ajaxterm - 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 ->> rewrite rule you propose. Thus, autogenerating seems unnecessary; we ->> should just have a documented, known-working RewriteCond and RewriteRule ->> for wikis that want to turn on the `usedirs` option. --[[JoshTriplett]]