The final step of migrating from confluence to Mediawiki is redirecting from the old confluence wiki to the new MediaWiki one. If, like our install, confluence is reached directly through Tomcat and not via Apache httpd (and this couldn't be changed), you have a minor problem - you can't just use mod_rewrite. urlrewrite to the rescue.
Basically, download urlrewrite, and extract into the WEB-INF directory of confluence.
Add the following before any servlet settings in your web.xml:
<filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Then, clear the default rules out of urlrewrite.xml, and add something like this:
<rule> <from>/display/KTWiki/(.*)</from> <to type="permanent-redirect">http://wiki.ktdms.com/$1</to> </rule>
It would be much easier to do this with Apache and mod_rewrite, of course.