Forum: Ruby on Rails rails app deployed in sub-directory, how to force url w ending slash

Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2013-03-19 05:59
(Received via mailing list)
I deployed my app into a sub-directory  ( Rails 3.2.12 / Apache w
Passenger
)

w the following vhost.conf :

Alias /myapp /home/myself/rails/mydomain.com/my_app/current/public
<Location /myapp >
  PassengerAppRoot /home/myself/rails/mydomain.com/ my_app/current
  RackEnv production
  RackBaseURI /myapp
</Location>

it's running fine , going to http://www.mydomain.com/myapp/     ( w
ending
slash )

however , and correctly ( as Apache in this case try to reach a page)
going to http://www.mydomain.com/myapp  raises a routing error..

should I redirect http://www.mydomain.com/myapp  to  http://www.
mydomain.com/myapp/   ?
or is there a better way not to raise the routing error for faulty users
?

thanks for your feedback
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.