Anquan Boldin had five catches for 90 yards and a touchdown, and Gore had 153 yards on 20 carries and a 34-yard score for San Francisco (2-2), which was outscored 46-10 the previous two games. Navarro Bowman had two of the 49ers' five sacks with a strip leading to a fourth-quarter scoring run by Anthony Dixon.
The Rams (1-3) had an overtime win and tie against San Francisco last year, and took the early lead Thursday before falling flat. Greg Zuerlein banged in a 40-yard field goal off the right upright to end a nine-game scoring drought in the first quarter, but the 49ers answered with 28 straight points.
*Copyright 2013 by The Associated Press *