The 49ers finished 6-10. That's not nearly good enough for a playoff berth, but with that season-ending winning streak it is good enough to give San Francisco optimism for 2018.
For the Rams, Sunday's late-December game was as meaningful as a late-August game. Los Angeles (11-5) already had clinched the NFC West championship and had secured a home game next weekend in the wild-card round of the NFC playoffs.
Goff's replacement, Sean Mannion, completed 20-of-34 passes for 169 yards.
The 49ers scored on their first two possessions. They took a 3-0 lead on a 33-yard field goal by Robbie Gould.
Garoppolo, with the sort of excellent protection he would enjoy all afternoon, lofted a short pass to wide receiver Marquise Goodwin, who was alone near the 10-yard line and jogged uncontested to the end zone to make it 10-0.
The Rams sliced their deficit to 10-3 on a 23-yard field goal by Sam Ficken with 1:15 left in the first quarter.
Gould's second field goal, this one from 48 yards, pushed the San Francisco lead to 13-3.
The 49ers added a Hyde 8-yard touchdown run with 1:13 to go in the first half. Hyde appeared to be stopped at the Rams' 5-yard line, but the rugby-like scrum, powered by 49ers center Daniel Kilgore and tackle Joe Staley, found its way across the goal line for a 20-3 lead.
The Rams got a 21-yard field goal from Ficken on the final snap of the half. Los Angeles got the ball on Kevin Peterson's second interception of the half, and put it at the San Francisco 3 on a 50-yard completion from Mannion to Michael Thomas. The Rams decided to take the field goal instead of trying for a touchdown.
The 49ers put the game away with six minutes to go in the third quarter on a 5-yard touchdown run by Hyde. Hyde took a handoff, headed toward the middle, found traffic there and then headed around the left corner. As he dived, Hyde extended the ball with his right arm just inside the pylon to make it 27-6.
San Francisco scored on the first play of the fourth quarter -- a 13-yard touchdown pass from Garoppolo to Aldrick Robinson. It was an easy score for the 49ers as Rams cornerback Nickell Robey-Coleman fell on the coverage, leaving Robinson wide open in the end zone. That made it 34-6.
Rams third-string running back Lance Dunbar scored on an 8-yard run with 6:40 left in the game for the team's only touchdown.
NOTES: The 49ers' domination of the game began in the first quarter in which they had eight first downs to the Rams' one. That Rams first down was on a roughing-the-passer penalty. ... 49ers WR Marquise Goodwin took a hard shot to the head from Rams safety Blake Countess on an incomplete pass in the second quarter. Goodwin stayed on the ground for several minutes while being attended to by the 49ers medical staff. He was placed on a cart and gave a double thumbs-up while being taken to the locker room. ... The Rams wore throwback uniforms: the royal blue jerseys with yellow accents, yellow pants with blue and white stripes, and blue helmets with yellow horns they wore from 1973 through 1999. Those are the same uniforms the Rams wore in the Warren Beatty movie "Heaven Can Wait."