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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
this looks ideal, thanks for the link shawn On Jan 16, 11:21 am, "eth1" <ebw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---