This is what the result has done to the Scottish Premiership table...
ABERDEEN 2-1 RANGERS
It's all over! Aberdeen have beaten Rangers thanks to James Maddison's last-gasp free-kick. It was a strike worthy to win any game and it's sparked jubilant celebrations Pittodire.
90+3: We're into the third and final minute of added time...
90+1: SUB! Rooney is replaced by Taylor.
GOAL! ABERDEEN 2-1 RANGERS (Maddison, 90)
WHAT A STRIKE! From the resultant free kick, Maddison whips the ball right into the top corner. the ball hits the inside of the post and bounces into the back of the net. It was a strike that left Fotheringham with absolutely no chance.
ABERDEEN 1-1 RANGERS
89: YELLOW! Tavanier gets a tackle from behind on Hayes and picks up a caution.
87: McKay runs at Reynolds but he's eventually stopped in his tracks by Logan on the cover.
85: CHANCE! Burns looks to wriggle his way through the Rangers defence but Wallace comes across to make a crucial intervention.
83: YELLOW! Mclean goes crashing into Halliday and he is now shown a yellow card.
82: YELLOW! Kranjcar is the latest player to go into referee John Beaton's notebook.
GOAL! ABERDEEN 1-1 RANGERS (Halliday pen, 79)
Halliday steps up and sends Lewis the wrong way to bring the scores level. Game on!
ABERDEEN 1-0 RANGERS - PENALTY TO RANGERS!
79: Wallace gets forward and is brought down in the penalty area by Hayes. Beaton points to the spot...
ABERDEEN 1-0 RANGERS
78: SUBS! Miller replaces Garner for the visitors, while Burn comes on for McGinn.
77: CORNER! Maddison's corner is easily cleared at the near post by Rangers.
ABERDEEN 1-0 RANGERS
76: FREE-KICK! Wallace pushes Logan over to hand Aberdeen a free-kick in a dangerous position. Maddison pulls the ball back for McGinn, whose shot is deflected behind for a corner.
74: Holt looks to play in Tavernier but he's asked too much of the full-back and the ball runs out for a goal kick.
71: SAVE! Aberdeen eventually threaten on the break as McGinn picks out Hayes, who bursts to the byline before forcing Foetheringham into a save at his near post.
70: Aberdeen just can't get out at the moment. Rangers are piling on the pressure in search of an equaliser.
69: SUB! Waghorn is replaced by O'Halloran for the visitors.
68: SHOT! Shinnie takes aim from about 30 yards and drives a shot wide of Fotheringham's near post.
LIVE SKY BET PRICE BOOST
Back Andy Halliday to score the next goal in this match as a live Sky Bet Price Boost at odds enhanced from 16/1 to 18/1!
Live Aberdeen v Rangers odds...
65: SUB! Kranjcar has come on for Rangers in place of Forrester.
64: YELLOW! O'Connor is shown a yellow card for a clash with Garner.
62: CHANCE! McKay turns Logan inside and out before putting in a dangerous cross towards the near post. The ball rebound to Waghorn, who fires high over the bar from close range. he should really have done better with that.
60: SHOT! More frustration for Rangers as Halliday's shot sails over the crossbar.
58: CORNER! McKay's corner is headed clear at the near post by Mclean.
55: SHOT! Wallace has a go from distance but cannot test Lewis in the Aberdeen goal.
54: FREE-KICK! Waghorn curls a dangerous ball towards the far corner but again, no Rangers player can get a touch. Goal kick to Aberdeen...
53: YELLOW! Reynolds goes into the book after bringing Garner down.
52: CROSS! Forrester's pass releases Wallace, who sends in a dangerous cross. There's no-one there for Rangers though as the ball flies across the face of goal.
49: YELLOW! Wilson has been shown a yellow card after a foul on Hayes.
48: SUB! Here's confirmation of Aberdeen's half time change. Maddison replaced Pawlett.
GOAL! ABERDEEN 1-0 RANGERS (Hayes, 46)
It's simple as you like for Aberdeen but they won't care one bit. Lewis' long punt is flicked on by Rooney to release Hayes in behind. The winger shows good composure before placing his shot under Fotheringham.
ABERDEEN 0-0 RANGERS
46: KICK-OFF! Aberdeen get us back underway...
It looks like Aberdeen will make a change. Maddison is the man coming on...
ABERDEEN v RANGERS ODDS
Rangers are marginal 15/8 favourites for victory while Aberdeen are 2/1, with the draw priced at 11/8. We also have five in-play Price Boosts including Waghorn to score first at 13/2 from 6/1 and a red card to be shown at 3/1 from 11/4. Click here to bet
John Beaton brings a close to a frantic first half. It's not been the prettiest of affairs with chances scarce at either end. Let's hope for better, and goals, in the second half...
45: There will be ONE minute of added time at the end of the first half...
43: CHANCE! Tavanier does brilliantly to get to the byline and he pulls the ball back for Garner, however, the forward miscues his shot. the chance isn't gone though as the ball falls to Holt but his shot is straight at Lewis.
40: CROSS! Shinnie puts a brilliant low cross across the face of goal. Rooney attempts to get on the end of it but Wallace gets his body in between the the player and the ball to usher it out of play.
39: SHOT! O'Connor's header falls to Holt in the penalty are, but his shot sails over the crossbar.
37: CHANCE! Wallace picks out Garner at the far post and the forward gets a header in on goal. Reynolds is in the way though and gets a crucial block in to save Aberdeen.
36: McKay gets away from Logan but curls his shot over the crossbar.
33: PENALTY? Reynolds and Forrester tangle in the Aberdeen penalty area but the referee wave away the appeals from the Rangers players.
31: SAVE! Aberdeen burst into life. Mclean gets a powerful strike away from the edge of the penalty area which Fotheringham does well to tip over the bar.
30: Pawlett plays a low cross into the box but, in truth, it;s a poor effort which is easily cut out by Wilson.
27: SAVE! Garner's shot is deflected and looks to be heading for the far corner. Lewis gets across though to get a strong hand to the ball.
26: FREE-KICK! It's really central and about 20 yards from goal. Waghorn runs over the ball and it's Tavanier to strike it, but his effort hits the wall.
25: O'Connor goes right through Garner, giving away a free-kick in a dangerous position for Rangers...
24: It's been a frantic start at Pittodrie but no real chances of note for either side.