Default routing to main page and hiding the original request


Hi everyone,
I’m currently redirecting every request that has not matched any other
to my site controller’s index action.
so if someone has tried to access they are
accessing However, the original request is still there and
that’s bad. How can I forcefully redirect to

obviously it cant be done in the index action itself (since it will
redirect for ever).

I’m guessing the solution is pretty simple?