Foros de discusión

Creating a custom 404 error page

Rob Hall, modificado hace 9 años.

Creating a custom 404 error page

Junior Member Mensajes: 47 Fecha de incorporación: 30/11/11 Mensajes recientes
I've set up in a hook war file a simple custom 404.jsp file and set this in my portal-ext.properties (I found these settings in other threads):

# 404 page
layout.show.http.status=true
layout.friendly.url.page.not.found=/errors/404.jsp

Restarted Liferay, deployed the war file. If I try and go to a page that doesn't exist on my site, instead of the 404 page I get a nonsense message--
'This webpage is not available' and the detail error message is Error code: ERR_CONTENT_DECODING_FAILED. Tried in both Chrome and Firefox.

Any thoughts on the source of this? Is there some configuration missing?
thumbnail
Manali Lalaji, modificado hace 9 años.

RE: Creating a custom 404 error page (Respuesta)

Expert Mensajes: 362 Fecha de incorporación: 9/03/10 Mensajes recientes
Hi Rob,

Can you try to disable your GZipFilter from web.xml?
Try putting in portal-ext.properties:
com.liferay.portal.servlet.filters.gzip.GZipFilter=false

HTH!
Rob Hall, modificado hace 9 años.

RE: Creating a custom 404 error page

Junior Member Mensajes: 47 Fecha de incorporación: 30/11/11 Mensajes recientes
Thanks..that worked.