Forum: Ruby on Rails Wildcard URL redirect via Rails Routes?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marston A. (Guest)
on 2008-11-09 18:45
(Received via mailing list)
Hey all,

I wanted to know if I can (and if it's a good idea) to redirect old
routes to other controllers/actions.  In a previous version we had
some routes like so "/public/username/some/other/variables".

What would I need to do in my routes.rb file to make "/public/username/
*" redirect to "/username" or even a specific controller/action?

Thanks in advance.
This topic is locked and can not be replied to.