Skip to main content
prohira
Level 3
October 16, 2015
Solved

separating 404 JSP for two projects under one CQ instance

  • October 16, 2015
  • 3 replies
  • 1968 views

I have two different projects on same CQ instance. The problem is on how to handle 404.jsp

I have overridden path /libs/sling/servlet/errorhandler/404.jsp in my project with /apps/sling/servlet/errorhandler/404.jsp and now I have to create separate custom error handling pages for both the projects.

 

How do I do that?

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015
September 1, 2018

The link shared by you talks about when we need to have single 404.jsp, but the question is we need 2 404.jsp for different projects in same CQ instance.

What is the way to do that

arunpatidar
Community Advisor
Community Advisor
September 3, 2018

Hi,

I am not sure why you need two 404.jsp though you can handle different behaviours for multisite with single 404.jsp

example:

https://www.albinsblog.com/2015/03/how-to-customizeconfigure-404-error.html#.W4zKDWaB1AY

Arun Patidar