留言板
Creating a custom 404 error page
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?
# 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?