Navigating to URL after setting Redirect Pattern is giving 404 error

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

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助