Expand my Community achievements bar.

Redirecting all 403 forbidden request to 404 'not found' page.

Avatar

Level 1

down votefavorite

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.

2 Replies

Avatar

Employee

@j_zubair

You can try using acs-aem-commons-error handler  by overriding error handler component from acs -commons .

For reference : Error Page Handler

Avatar

Level 1

Thanks for reply, but I did this with configuring in dispatcher filter. Denied all request first and then allowing particular requests.