ANAHEIM, Calif. - Mike Napoli broke a tie in the ninth inning with his fourth homer in two games, and the Texas Rangers finally clinched home-field advantage in the AL division series with a 3-1 victory over the Los Angeles Angels on Wednesday night.

Napoli, the longtime Angels catcher, also homered in the second inning as the Rangers set a franchise record with their 96th victory - including six straight heading into the postseason.

With 14 wins in their final 16 games, Texas (96-66) held off Detroit (95-67) for the right to host the wild-card winner at Rangers Ballpark on Friday.

Gil Velasquez drove in the only run for the Angels, who were in playoff contention until Monday. Los Angeles (86-76) lost six of its last seven.

Tigers 5, Indians 4

DETROIT - Miguel Cabrera singled and doubled, all but wrapping up the American League batting title, and Jhonny Peralta hit a tiebreaking homer in the eighth inning to help Detroit beat Cleveland.

Cabrera entered the day hitting .343, five points ahead of Michael Young of Texas and Adrian Gonzalez of Boston. He raised his average another point against the Indians, making it almost impossible for the other two to catch him.

Peralta hit his 21st homer of the season off Vinnie Pestano (1-2) to give the Tigers the lead after Ryan Perry (2-0) allowed Cleveland to tie it at 4 in the top of the eighth.

Jose Valverde pitched the ninth for his 49th save in 49 chances.

The Tigers will start on the road against the New York Yankees.

Cleveland manager Manny Acta was ejected in the first inning, enabling bench coach Tim Tolman to take over in his final game before moving to an undetermined role elsewhere in the organization. Tolman said before the game he has Parkinson's disease.

The Indians led, 3-0, and starter Zach McAllister went five innings without allowing an earned run, but the bullpen couldn't hold on.

Detroit took a 4-3 lead in the seventh when Wilson Betemit tripled and pinch-runner Danny Worth scored on a wild pitch. Cleveland tied it in the eighth when Perry allowed a double to Travis Hafner, a pair of walks and then a sacrifice fly by Jack Hannahan.