Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rodrigo Martins
Community Specific 404 Error Pages
December 10, 2012 7:00 AM
Answer

Rodrigo Martins

Rank: Regular Member

Posts: 101

Join Date: September 11, 2012

Recent Posts

I'm using Liferay 6.0.12 EE SP2. Portal allows me to create separate communities in such way I can apply a specific theme and have the appearance of a fully independent site. Therefore, when trying to access a page that does not exist, the user should be redirected to an error page in the context of the community.

When trying to access a page that does not exist in any community, we are redirected to an error page that contains the main theme of the community portal. That is:

> If you try to access www.a.com/foo, and "foo" does not exist in the community A, the user is redirected to the Page Not Found with community A theme
> If you try to access www.b.com/foo, and "foo" does not exist in the community B, the user is redirected to the Page Not Found with community A theme

I found a a property (which is layout.friendly.url.page.not.found) in portal.properties that can be overriden via hook to allow 404 resulting page overriden. However, that is true for one and only one community, which is the community's main portal. Jira http://issues.liferay.com/browse/LPS-25752 was created for the version 6.2 CE, but it fits.

Is there a way to create a page that overriden the 404 Page Not Found error in the context of each community?

Sincerely,
Rodrigo Martins
Rodrigo Martins
RE: Community Specific 404 Error Pages
December 12, 2012 11:20 AM
Answer

Rodrigo Martins

Rank: Regular Member

Posts: 101

Join Date: September 11, 2012

Recent Posts

I've wrotten about the solution at:

http://www.liferay.com/community/forums/-/message_boards/message/18490667

I hope that can help someone.
Rodrigo Martins
RE: Community Specific 404 Error Pages
March 13, 2013 11:04 AM
Answer

Rodrigo Martins

Rank: Regular Member

Posts: 101

Join Date: September 11, 2012

Recent Posts

I wrote an article about three possible solutions:

http://atitudereflexiva.wordpress.com/2013/02/05/redirecionamento-para-pagina-nao-encontrada-no-liferay/

Rodrigo