Forum: Ruby on Rails Default routing to main page and hiding the original request

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6fe135329ce89e00b74839a41c8e3872?d=identicon&s=25 Ehud Rosenberg (ehudros)
on 2007-04-14 00:19
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
This topic is locked and can not be replied to.