LegacyUtils icon
Module Id
legacy-utils
Group Id
org.jahia.modules
Updated
Requires Jahia
7.0.0.3
Author
Damien Saulnier
Category
Tools and Utilities
Status
COMMUNITY info

LegacyUtils group_work

migration legacy url redirection

This module provides support of the Jahia 4.x, 5.x, 6.0.x and 6.1.x URL patterns, and redirects the former ULRs of the pages and files to the new URL of the very same content, after a migration.

Dependencies & Dependants

Dependencies
  • NONE
Dependants
  • NONE

How To Install

Jahia legacy URLs compatibility tool
Deploy the jar legacy-utils-xxx.jar as an additional module of the Jahia web application.

Front end URL rewriting
In a custom module, define some rewriting rules to redirect the legacy URLs to the compatibility
tool.
workspace\XXXXXXXX\src\main\resources\META-INF\urlrewrite-migrationRefin.xml :

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
"http://tuckey.org/res/dtds/urlrewrite3.2.dtd">
<urlrewrite>
<!-- Inbound rules -->
<rule>
<from>^/intranet/ep/(.*)$</from>
<to last="true">/modules/legacy_pages/site/intranet/$1</to>
</rule>
<rule>
<from>^/intranet/webdav/(.*)$</from>
<to last="true">/modules/legacy_files/$1</to>
</rule>
</urlrewrite>