.htaccess ReWrite

Hello everyone,
I have the following old way of getting users to their sites

I want all request coming in to this old way to go to the new way


Domain name is the same.

Is there a way to do this within Rails Routes or does someone know how
to write this in .htaccess?

Thank you,

Sean McGilvray