legacy-knowledge-base
公開されました Sep. 10, 2025

WebLogic Serverにカスタム404エラーページを設定する

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

問題

  • Liferay DXPがWebLogic Serverにデプロイされている場合、エラーコード404のユーザーをカスタムページにリダイレクトするには?

環境

  • Liferay DXP 7.4

解像度

  • Oracle/Middleware/Oracle_Home/user_projects/domains/liferay/servers/AdminServer/tmp/_WL_user/liferay-dxp-7.4.13.(update)-20230816105706384/yev2y4/war内に404カスタムエラーページ(例:mypage.html)を作成します。
  • Oracle/Middleware/Oracle_Home/user_projects/domains/liferay/servers/AdminServer/tmp/_WL_user/liferay-dxp-7.4.13.(update)-20230816105706384/yev2y4/war/WEB-INF 内にある web.xml ファイルを以下のコードで編集します:
<error-page>
<error-code>404</error-code>
<location>/mypage.html</location>
</error-page>
  • portal-ext.propertiesファイルに以下のプロパティを追加する:

layout.friendly.url.page.not.found=/mypage.html

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base