I am trying to redirect all forbidden request to 404 'not found' page. Url I am trying to access. http://localhost:4503/content/mysite/home.html (it is working fine). But when I try to access, http://localhost:4503/content/mysite (it is forbidden here). My site is developed in adobe experience manager and I don't see any config/setting related with redirecting in aem. So, I have to do something on web server which is Apache here. And I am not pretty much familiar with Apache and creating rules in it. I would like to ask if there is anything that redirect any forbidden request to 404 not found page. |
Views
Replies
Total Likes
@j_zubair
You can try using acs-aem-commons-error handler by overriding error handler component from acs -commons .
For reference : Error Page Handler
Views
Replies
Total Likes
Thanks for reply, but I did this with configuring in dispatcher filter. Denied all request first and then allowing particular requests.
Views
Replies
Total Likes