URL redirection between sites in Liferay DXP 7.4
written-by
Madhusudan Sharma
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- After migrating from Liferay DXP 7.3 to DXP 7.4, URL redirection rules defined in
rewriteurl.xml (no longer supported in 7.4) and through .config files stopped working.
- Liferay’s built-in redirection settings only handle site-level redirections and do not support redirection for URLs that include paths beyond the context path.
- How to apply redirection globally so that the URLs can be redirected between sites within the instance?
- Additionally, is there any way to perform URL rewriting using an out-of-the-box feature?
Resolution
- As per this article, the redirection of URLs via urlrewrite.xml is no longer supported in Liferay DXP 7.4.
- To apply URL redirection between sites, we can utilize Liferay's out-of-the-box feature i.e. Alias Redirects.
- Liferay's built-in redirection does not support URL rewriting or complex parameterized URL redirection. To achieve this, configure redirection rules at the web server level. For Apache, use the `mod_rewrite` module in the web server's configuration file. See Apache Module mod_rewrite for more information.
did-this-article-resolve-your-issue