If I understand the question correctly you want to go to a particular page when the user enters an invalid controller or action? When running in production mode this, by default, displays the page public/404.html. You can make this page display what you like. Is that what you are looking for?
Colin