how can I catch 'resource not found' exception and redirect url instead of showing an error?
I have a website that is served on Apache 2.2 and Zend Framework 1.11.5 with php 5.3.
whenever a user tries to enter a page that doesn't exists he gets an exception "resource not found". how can i catch that exception and redirect the user to a different domain on the same path instead of showin开发者_StackOverflow中文版g an error ?
You could modify your ErrorController::errorAction()
to detect/redirect on those not-found exceptions.
精彩评论