Default routing to main page and hiding the original request


#1

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

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

I’m guessing the solution is pretty simple?

Ehud