SANTA CLARA, Calif. — Four nights after winning the highest-scoring game of the NFL season, the Los Angeles Rams won the only game this year that didn't have a touchdown.
Joshua Karty kicked four field goals and the Rams survived a slugfest a week after winning a shootout, beating the San Francisco 49ers 12-6 on Thursday night in a key game in the NFC West race.
''What's really cool is this team has found a bunch of different ways to be able to win football games," coach Sean McVay said. ''You come off a 44-42 game the other day and then you win 12-6. Our group did what they needed to do to be able to get it done.''
The Rams (8-6) followed up the high-scoring win over Buffalo by winning for the seventh time in nine games following a 1-4 start. The Rams moved within a half-game of division-leading Seattle. Los Angeles won a game without a touchdown for the first time since 2016.
The 49ers (5-8) led 6-3 heading into the fourth quarter but came up short, dealing a major blow to the dwindling playoff hopes for the defending NFC champions.
This marked the fourth time this season that the Niners lost to a division opponent after leading by at least three points in the fourth quarter, making them the first team to do that since New England in 2000 in coach Bill Belichick's first season with the Patriots.
''It was the story of the year,'' linebacker Fred Warner said. ''Just not doing enough to win games. Not playing complementary. Just coming out a little too short.''
Karty capped a 17-play drive with a game-tying 23-yard field goal early in the fourth quarter and then hit a 27-yarder after Matthew Stafford connected on a 51-yard pass to Puka Nacua.