Is there a way to create a custom error page for 404 and 500 errors in CQ3.x or CQ4.x?
/config/delivery/scripting.xml
and add your own error handler for status 404 or 500. For example: Note: Keep the line <error status="*" script="/libs/Errorhandler/status.ecma" type="ecma" />
that exists and put your handler after it.
<errorhandler> <error status="*" script="/libs/Errorhandler/status.ecma" type="ecma" /> <error status="404" script="/path/to/your/script.esp" type="ecma" /> ... </errorhandler>
<errorhandler> <error status="*" script="/libs/Errorhandler/status.ecma" type="ecma" /> <error status="404" script="/path/to/your/script.jsp" type="jsp" /> ... </errorhandler>
See the Script Handler Reference page.
Note:
Sign in to your account