Path_prefix for all routes


I’m deploying RoR application on Hostgator (shared hosting).
I want my application address to be
Foo is the folder and bar is the symlink that points to the public
folder of my rails application located in my home folder. gives me index.html page, but I can’t hit any
controllers until I set :path_prefix => ‘foo’ for all routes. Is there
any better way to do it (setting the path_prefix for all routes at once,
or maybe I should change my .htaccess file)

My .htaccess is like this:

Thank you in advance.