How to Configure Global Error Pages in Liferay DXP
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
- How can I configure error pages (404, 403, 500) globally for all sites in Liferay DXP?
Resolution
-
While utility pages (including error pages like 404, 403, and 500) are configured at the site level by design, there's a way to apply a global configuration.
-
For 404 errors, use the portal property layout.friendly.url.page.not.found. The page specified here overrides any site-level 404 utility pages. For cases where the site itself doesn't exist, you can use sites.friendly.url.page.not.found.
-
For other error pages (403, 500, etc.), the recommended approach is to export the utility page as a zip file using the context menu within Site Builder, and then import this zip into each site where you want the same error page configuration. This provides a streamlined method for consistent error handling across your sites.
Did this article resolve your issue ?