Closed Kuubs closed 6 years ago
It might not hit the handler if there is already other redirects defined. Then provider scanning is skipped.
P.S There is an issue in your code - the handler should return URL to redirect instead of redirecting yourself.
Were you able to figure out why it doesn't work for you?
Closing for now. If you still have this issue, feel free to open the issue again.
At this moment the requests to unexisting URLs do not hit the configured INotFoundHandler implementation. Instead they immediately hit the ErrorHandlerController and I can not explain why. Locally when debugging I do hit themethod RewriteUrl in the INotFoundHandler implemantation. But externally, on Test (azure) the implantation is not hit. We tested this by adding an Exception on test.
Can you please assist me finding the problem? Below you will find the web.config file and the implementation of INotFoundHandler. Thanks in advance!
Web.config:
Implementation of the not found handler: