Search code examples
glassfishhttp-status-code-404glassfish-3liferay-6

How do I create a different 404 page for each site in Liferay 6.1


I am running Liferay 6.1.0 GA1 on Glassfish 3.1.1. I am looking to create a simple 404 error page for my portal site. However, I am unsure of how to do this and cannot find any decent documentation online.

Several forums mention adding a property in the property-ext.properties file

layout.friendly.url.page.not.found=/errors/my_404error.htm

However, where does this "my_404error.htm" get stored?

And what if I have several sites on my portal, each styled a different way. How do I create a a customized 404 page for each site?

As I am new to Liferay, I figure there is a simple solution to this problem, I just don't know where to look.

Thanks in advance.


Solution

  • So I found the answer in a place I should have looked the first time around.

    The Liferay Developer's Guide.

    Specifically, the section on "Overriding a JSP". That was exactly what I was looking for and I was easily able to tailor it to my Glassfish installation.