RE: layout.friendly.url.page.not.found, problems with custom 404 page

thumbnail
Andreas Lecerof, modified 7 Years ago. Junior Member Posts: 36 Join Date: 2/14/13 Recent Posts

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)?

Ravi Shah, modified 7 Years ago. Junior Member Posts: 59 Join Date: 1/2/14 Recent Posts

Hi, 

 

Can you try setting this property? 

sites.friendly.url.page.not.found=/errors/errorPage.jsp

thumbnail
Andreas Lecerof, modified 7 Years ago. Junior Member Posts: 36 Join Date: 2/14/13 Recent Posts

Thank you I will try that property!