Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

separating 404 JSP for two projects under one CQ instance

Avatar

Level 4

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,

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 1

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

Avatar

Community Advisor

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