1 As of version 2.0, ikiwiki will switch to enabling the 'usedirs' setting by
2 default. This *will* break all URLs to wikis that did not have 'usedirs'
3 turned on before. You can either follow this procedure to convert your wiki
4 to usedirs, or edit your setup file and turn usedirs back off.
6 * Upgrade ikiwiki to 2.0.
7 * Force ikiwiki to rebuild your wiki, by using `ikiwiki-mass-rebuild`,
9 * Since usedirs is enabled, ikiwiki will have created a bunch of new
10 html files. Where before ikiwiki generated a `dest/foo.html`, now it will
11 generate `dest/foo/index.html`. But, the old html files will still be
12 present too. Remove them:
13 find dest -name \*.html -not -name index.html -exec rm {} \;
14 * If you have a blog that is aggregated on a Planet or similar, all the
15 items in the RSS or atom feed will seem like new posts, since their URLs
16 have changed. See [[howto_avoid_flooding_aggregators]] for a workaround.
17 * Now all the URLs to pages in your wiki have changed. See
18 [[redirections_for_usedirs]] for instructions on setting up redirections
19 to keep the old URLs working.
23 There are several advantages to `usedirs`, including simpler URLs, URLs that
24 aren't dependent on the underlying implementation (`.html`), and being able to
25 use URLs as tags as described in the [rel-tag
26 microformat](http://microformats.org/wiki/rel-tag).
28 The main disadvantage is that it is harder to browse using `file://` URIs,
29 since `file:///dir/` doesn't automatically translate to `dir/index.html`. This
30 is something one could fix in the browser though.