How do I redirect users from old twiki install to new foswiki install urls?

Typical scenario:

You have an old install of Twiki™ Wiki which you would like to migrate to a new Foswiki install on the same or different server. Over time many users have bookmarked topics and you do not want them to have to manually edit these bookmarks but you want to redirect them to the same topic on the new Foswiki install.

e.g.

A user looking to navigate to their user topic on the old Twiki™ server would have bookmarked the topic as:

http://server/twiki/bin/view/Main/SomeUser

This same topic on the Foswiki install is now:

http://server/foswiki/bin/view/Main/SomeUser

Apache

In your apache config you should add the following rewrite rule:

RewriteEngine On
RewriteRule ^\/+twiki\/+(.*)$ /foswiki/$1 [R=301,L]

Todo's

  • Add IIS rewrite rules

Credits

Thanks to PaulHarvey and GeorgeClark for their help on the apache rewrite rules

Support.FAQForm edit

TopicClassification FrequentlyAskedQuestion
Subject Web server
Topic Summary Migrating to Foswiki - URL Rewrite rules
Extension
Interested Parties
Related Topics ShorterUrlCookbook
Topic revision: r2 - 27 Dec 2011, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy