Legacy Knowledge Base
Published Sep. 10, 2025

Navigating to URL after setting Redirect Pattern is giving 404 error

Written By

Dia Seung

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When Redirect Pattern is defined such as below to redirect pages, navigating to the URL gives 404 error instead of redirecting properly.
    kcs-redirect-issue.png

Environment

  • DXP 7.4 u65 and lower

Resolution

  • By default, patterns defined with / in the front should automatically update to start with ^/ instead when saving.
  • However, if it does not, starting with / may lead to 404 errors, and can be resolved by removing the leading slash in DXP 7.4 u65 or lower.
  • In DXP 7.4 u66 or higher, LPS-175152 has been added to make the leading slash optional.
  • While up to your team's discretion, please note that when looking to only redirect URL's and not necessarily regex patterns, alias redirects are generally recommended instead of using Redirect Patterns when possible.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base