Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: layout.friendly.url.page.not.found, problems with custom 404 page
I'm trying to present a custom 404-page to the user (Liferay 6.2,
tomcat bundle).
Apache is set to let all 404-requests go further
to Liferay.
I've set this property
layout.friendly.url.page.not.found=/errors/errorPage.jsp in portal-ext.
The following works:
1. The user navigates to a site that s/he
is not a member of
2. The user navigates to a page that doesn't
exist in a site the user is a member of
In case 1) and 2) the
user is directed to my errorPage.jsp
But, the following does not work:
3. The user navigates to a
site that doesn't exist
4. The user is not signed in
In
case 3) and 4) if I look in the Network tab in Chrome, the page gives
a 404
but the main theme is loaded. In case 4 the page is
presented with the user's avatar and "Edit Controls"
(in case 3 and 4, further down a text The requested resource was not found).
Why does not case 3) and 4) above work?
That is, why is not my
errorPage.jsp presented in case 3) and 4)?
Hi,
Can you try setting this property?
sites.friendly.url.page.not.found=/errors/errorPage.jsp
Thank you I will try that property!
Powered by Liferay™