Redirecting all 403 forbidden request to 404 'not found' page. | Community
Skip to main content
December 3, 2017
Question

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

  • December 3, 2017
  • 2 replies
  • 1760 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Adobe Employee
December 4, 2017

@j_zubair

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

For reference : Error Page Handler

j_zubairAuthor
December 6, 2017

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