Match ends, Partick Thistle 1, Rangers 2.
Joe Garner scored a stoppage-time winner as Rangers came from behind to beat Partick Thistle at Firhill.
Kris Doolan nodded home at the end of a great move as Thistle took the lead and complete control of the first half following early Rangers pressure.
Substitute Barrie McKay produced a moment of quality to poke home and haul his side level.
And Garner superbly headed in Kenny Miller's cross to complete the comeback and hand his side all three points.
The win, which ensures a top-four finish and secures European football for Rangers next season, takes the third-placed Ibrox side to within six points of second-placed Aberdeen, who play Hearts later.
For Partick, it was deja vu after November's match in which Doolan gave them the lead only for a late Joe Dodoo brace to win it for Rangers.
Partick press home advantage
Pedro Caixinha sent out an attacking line-up with Garner, Dodoo, Miller and Martyn Waghorn looking to take the game to Thistle, and for the first 10 minutes the visitors enjoyed plenty of possession in the final third.
Miller pulled an angled effort wide, Garner knocked a near-post effort into the side netting and Josh Windass was looking lively in midfield.
The question was always going to centre on how the defence would cope in such a line-up and the answer came when Partick sliced through the back-line all too easily.
Doolan held the ball up brilliantly and played in Steven Lawless before breaking into the box to nod a superb Christie Elliott cross beyond Wes Foderingham.
Niall Keown headed a great chance over the bar soon after and Ryan Edwards found himself in acres of space three yards from goal but Foderingham managed to divert it wide as the home side pressed for a second.
Rangers' early confidence was gone, Partick's was growing by the second and they controlled the remainder of the opening 45 minutes.
Changes pay off for Rangers
Caixinha sent the same side out for the second half but soon added the experienced Clint Hill to the defence, with Waghorn making way.
Miller had a sniff at goal but Tomas Cerny snuffed that out superbly and Thistle went up the park where Doolan nodded wide after a Danny Wilson slip afforded him the freedom of the six-yard box.
Edwards was dictating the play for Partick in midfield, looking a yard ahead of his Rangers counterparts in terms of pace and thought.
On came youngster Jamie Barjonas for his debut in an attempt to bolster the Rangers midfield, with Wilson going off and Jason Holt soon making way for McKay.
Caixinha's final roll of the dice made a difference as McKay hauled Rangers level, the winger showing great composure and touch to go past two Thistle defenders before beating Cerny.
Garner won it with seconds to play, rising to expertly head beyond Cerny after excellent work on the right from Miller.
Caixinha still searching for right mix
Rangers will be delighted to return to winning ways following back-to-back Old Firm defeats, but the performance against Partick will have done little to convince their fans of any major improvement.
They started well but as soon as Partick settled into the game the Ibrox players look disjointed and directionless.
Boss Caixinha made changes to his system and personnel throughout the match, suggesting he is still struggling to discover how to get the best from this group.
Partick boss Archibald will be disappointed to yet again lose out to late Rangers goals, and this is a match his side probably deserved a point from.
- 3BoothBooked at 70mins
- 19EdwardsSubstituted forMcCarthyat 89'minutes
- 10ErskineSubstituted forAzeezat 87'minutes
- 6WilsonSubstituted forBarjonasat 71'minutes
- 33WaghornSubstituted forHillat 53'minutes
- 23HoltSubstituted forMcKayat 76'minutes
- 7GarnerBooked at 90mins
- Crawford Allan
- Shots on Target
Second Half ends, Partick Thistle 1, Rangers 2.
Joe Garner (Rangers) is shown the yellow card for excessive celebration.
Goal! Partick Thistle 1, Rangers 2. Joe Garner (Rangers) header from the centre of the box to the bottom right corner. Assisted by Kenny Miller.
Attempt missed. Niall Keown (Partick Thistle) right footed shot from the left side of the six yard box is close, but misses to the left.
Corner, Partick Thistle. Conceded by Myles Beerman.
Corner, Partick Thistle. Conceded by Josh Windass.
Attempt missed. Joseph Dodoo (Rangers) right footed shot from outside the box misses to the right.
Delay over. They are ready to continue.
Substitution, Partick Thistle. Andrew McCarthy replaces Ryan Edwards because of an injury.
Delay in match Ryan Edwards (Partick Thistle) because of an injury.
Substitution, Partick Thistle. Adebayo Azeez replaces Chris Erskine.
Chris Erskine (Partick Thistle) wins a free kick in the defensive half.
Foul by Clint Hill (Rangers).
Attempt blocked. Barrie McKay (Rangers) right footed shot from the centre of the box is blocked.
Goal! Partick Thistle 1, Rangers 1. Barrie McKay (Rangers) right footed shot from outside the box to the bottom right corner.
Kris Doolan (Partick Thistle) wins a free kick in the defensive half.
Foul by Clint Hill (Rangers).
Abdul Osman (Partick Thistle) wins a free kick on the right wing.
Foul by Joe Garner (Rangers).