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
問題
ポータルサイトで不正なURLをヒットした場合、「要求されたリソースが見つかりません」エラーやPage not foundエラーで、その特定のサイトではなく、デフォルトサイトにリダイレクトされます。
# # Redirect to this resource if the user requested a friendly URL of a page # that does not exist. Leave it blank to display nothing. # # A similar configuration for sites is managed with the property # "sites.friendly.url.page.not.found". # # Note: For backward compatibility, this overrides the property # "layout.show.http.status" for the 404 status code. # #layout.friendly.url.page.not.found=/html/portal/404.html
# # Redirect to this resource if the user requested a site friendly URL that # does not exist. Leave it blank to display nothing. # # A similar configuration for pages is managed with the property # "layout.friendly.url.page.not.found". # #sites.friendly.url.page.not.found=/html/portal/404.html