ANAHEIM, CALIF., DEC. 17 -- Rookie Dexter Carter scored on a 74-yard run and Joe Montana threw for 219 yards and a touchdown tonight as the San Francisco 49ers defeated the Los Angeles Rams, 26-10, to avenge their only loss of the season and clinch the home field for all playoff games.
The 49ers, 28-17 losers to the Rams at Candlestick Park on Nov. 25, extended their record to 13-1.
Carter, from Florida State, gave the 49ers breathing room in the fourth quarter when he broke through the middle and outran three defenders down the left sideline.
He finished with 124 yards rushing on 13 carries and his run was the 49ers' longest for a score in the regular season since Wilbur Jackson had an 80-yarder in 1977.
Montana, who completed 15 of 30, including a 60-yard touchdown throw to Jerry Rice, ran his personal streak at Anaheim Stadium to 9-0. The 49ers lost on Los Angeles' home field in 1986 when Montana was out for surgery.
The Rams' Jim Everett threw for 232 yards, going 17 of 35, but was intercepted twice and lost a fumble.
The 49ers, who ran their NFL-record road winning streak to 18 games, took a 16-0 lead in the second quarter.
Los Angeles (5-9) closed to 19-10 on a 21-yard field goal by Mike Lansford in the third quarter. The Rams marched 76 yards, but the 49ers held after Los Angeles had first and goal at the 6-yard line.
Mike Cofer's 31-yard field goal gave the 49ers a 19-7 lead in the third quarter.
The Rams put together a 78-yard scoring drive just before halftime to close to 16-7.
Derrick Faison, a rookie from Howard University, caught an eight-yard scoring pass from Everett for the Rams' only touchdown.
A 35-yard pass from Everett to Willie Anderson, to the San Francisco 39-yard line, was a big play in the Rams' scoring drive, as was an illegal contact penalty against cornerback Don Griffin that nullified Johnny Jackson's interception.
The 49ers opened a 16-0 lead in the second quarter, with Tom Rathman scoring on a fourth-down, one-yard dive and Montana hooking up with Rice two minutes later.
Montana, hitting his receivers underneath the coverage, marched the 49ers 76 yards to set up Rathman's score. The 49ers were stopped on two runs from the 1-yard line, but Rathman went over the top to make it 9-0. On the extra point attempt, the snap was low and holder Barry Helton's pass was incomplete.
After the 49ers forced the Rams to punt on the next series, Rice got behind cornerback Jerry Gray and took a perfect pass from Montana for another touchdown. It was Rice's first score in five games.