Hi Team,
We are implementing a custom error handler page, so we have added in dispatcher file ErrorDocument 404 to custom handler page.
when we are calling to any page, which are not there in Author, from dispatcher then its giving the custom error page but while calling "/crx/explorer/index.jsp.css" , its not giving custom error handler page.
Can someone please help here
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @skumari -
You can go to the dispatcher.any file => Locate the /filter section
Later you can make the changes like below :
/filter
{
/filter_rules
{
# Rule to handle /crx/explorer/index.jsp.css
/0001
{
/type "allow"
/glob "*index.jsp.css"
/redirect "https://example.com/custom-error-handler"
}
# Additional rules...
# Default rule for handling other requests
/default
{
/type "deny"
/redirect "https://example.com/custom-error-handler"
}
}
}
Regards,
Tanika
Hi @bilal_ahmad
I am getting below response while hitting the from Pub/Dis, which shouldn't be the case. I should have get the custom error page with 404 response code.
Hello @skumari -
Go to dispatcher.any file => locate the "rules" section => Add a new rule to handle the specific request for /crx/explorer/index.jsp.css
/crx/explorer/index.jsp.css
{
/redirect "http://your-custom-error-page-url"
}
Restart dispatcher and it should be able to solve the problem.
Regards,
Tanika
Hello @skumari -
You can go to the dispatcher.any file => Locate the /filter section
Later you can make the changes like below :
/filter
{
/filter_rules
{
# Rule to handle /crx/explorer/index.jsp.css
/0001
{
/type "allow"
/glob "*index.jsp.css"
/redirect "https://example.com/custom-error-handler"
}
# Additional rules...
# Default rule for handling other requests
/default
{
/type "deny"
/redirect "https://example.com/custom-error-handler"
}
}
}
Regards,
Tanika
Hi @Tanika02
My custom error page path is "/content/bookpedia/us/en/error" so will this the correct way to apply the rule?
# Rule to handle /crx/explorer/index.jsp.css
/0001
{
/type "allow"
/glob "*index.jsp.css"
/redirect "/content/bookpedia/us/en/errors"
}
Views
Likes
Replies
Views
Like
Replies