In Tridion 2013 we are getting generic exception for the pages that do not exist in the website. Is there a way to prevent generic errors due to invalid page requests? Thanks.
-
Where? on your website? Which technology do you use for the website? serverfault.com/questions/254102/… or docs.microsoft.com/en-us/iis/configuration/system.webserver/… this may help– Nuno Linhares ♦Commented Sep 10, 2019 at 11:38
-
It is on the website developed in java– Azizur RahamanCommented Sep 10, 2019 at 12:50
-
are you using DXA java? Any additional details on the web application architecture will help provide the right solution– ShivaCommented Sep 10, 2019 at 14:09
-
Hi Shiva thanks for your answer. We are using DXA Java Project with Spring and Oracle 12.1 c.– Azizur RahamanCommented Sep 11, 2019 at 11:32
1 Answer
You cannot prevent an exception or error being thrown by the application for pages or items that does not exist. However, you can customize the error message or throw errors differently to create a better user experience.
You can look through the example for DXA 1.4. It should be pretty similar to the DXA version that you are using, though.
The other way would be to change the default ServerError.jsp in your web application. This would change the default error message from DXA though.