Forum: Ruby on Rails problem with mod rewrite

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
mydomain.com/index_session.php to /groups/index.rhtml
and
mydomain.com/rain.php 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,

shawn
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.

http://wiki.rubyonrails.org/rails/pages/Routes

-ethan
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
shawn
This topic is locked and can not be replied to.