Aberdeen's bright start under new boss Mario Frick continued when Brad Lyons gave the Dons a shock half-time lead at Ibrox.
Yet, Rangers roared back to extend their unbeaten run to 14 games, which began when the sides last met at Pittodrie in August.
A triple half-time change by Derek McInnes reaped immediate reward as the in-form Ryan Naderi levelled.
Djeidi Gassama then sprinted clear onto Naderi's pass to score as Rangers netted twice inside the opening two minutes of the second half.
Nico Raskin looked to have secured the points when he stroked home from Gassama's pass.
Yet, just a minute later Findlay Marshall's sweet finish gave Aberdeen hope once more.
Both sides had chances galore for more goals in a frantic finale, but McInnes's men held on for a vital three points.
Hibernian ended their wait since April for a home league win thanks to a 2-1 victory over Dundee to edge five points clear of the relegation zone.
