Forum: Ruby on Rails problem with mod rewrite

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.
500e92cfb666d6757c317a5df7c7e28d?d=identicon&s=25 Shawn Bright (nephish)
on 2007-01-16 17:36
(Received via mailing list)
lo there all

we just kicked off our new server running our new site on rails. We did
this by switching the routing of port 80 to our box serving rails from
the box serving php.

my problem now is that if someone had our site bookmarked, they would
be getting routing errors.
i know that rewrite is the way to go here, but i am really failing to
get it to do what i need

i need to re-route all requests for to /groups/index.rhtml
and to /groups/index.rhtml

actually, if i just re-routed every request for something to my
/groups/index.rhtml file, i would be golden.

could someone tell me how to write this rule, and whether to put it in
my apache virtual host conf, or in the .htaccess of my rails app ?

thanks for any tips,

3252509ae024ded864bd341e893fab2d?d=identicon&s=25 eth1 (Guest)
on 2007-01-16 18:51
(Received via mailing list)
I don't think rewrite is necesarilly the way to go.  I'd go with
routes.rb in the config directory.

500e92cfb666d6757c317a5df7c7e28d?d=identicon&s=25 Shawn Bright (nephish)
on 2007-01-16 19:11
(Received via mailing list)
this looks ideal, thanks for the link
This topic is locked and can not be replied to.