My rails app seems to break when it answers on http://www.example.com, it previously was working fine with just example.com…however I’ve moved servers recently and would like to know the best way to redirect all http://www.example.com requests to go to http://example.com/…/
thanks.
This should do the trick, assuming that you have mod_rewrite enabled