Hi all. I'm moving our site from eg <domain>/staging/<rest of path> to
simply be
<domain>/<rest_of_path>. I want to catch all the people who have
bookmarked the "staging/" urls (or have them in their browser history)
and redirect them to the equivalent url without "staging/". Eg if
someone goes to
<domain>/staging/foos/123/edit
it will send them to
<domain>/foos/123/edit
Is this something i can do in routes.rb? Or is it better done at the
server config level?
thanks, max
--
Posted via http://www.ruby-forum.com/.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment