(CNN) -- Barry Ferguson made a dramatic comeback as a second-half substitute as Rangers returned to the top of the Scottish Premier League with a 2-1 home win over Aberdeen.
Kenny Miller celebrates scoring Rangers' second goal in their 2-1 home victory over Aberdeen.
However, the Ibrox side are aware that a Celtic victory at Hibernian on Sunday will see their Glasgow rivals and defending champions return to the summit on goal difference with just one game remaining.
A Richard Foster own-goal and a header from Kenny Miller were enough to seal the points, despite Michael Paton pulling a goal back for the visitors, but whether the narrow victory will be enough for Rangers remains to be seen.
Ferguson was back for the first time since being stripped of the captaincy and banned by the club after his alcohol-fuelled antics while on Scotland international duty.
Rangers were handed a boost in the 18th-minute when Aberdeen had defender Charlie Mulgrew sent off for an alleged head-butt on Kyle Lafferty, although the match became a 10-a-side contest six minutes before half-time when Rangers defender Majid Bougherra was dismissed me for a high challenge on keeper Jamie Langfield.
The home side broke the deadlock in the 66th-minute when Miller's cross was turned into his own net by Foster and they doubled their advantage two minutes later when Miller powerfully headed home Nacho Novo's cross.
Aberdeen substitute Paton managed to find space before turning and prodding home with 77 minutes gone, but Rangers held on to take the Scottish title race to the very last game.