Match ends, Rochdale 4, Aldershot Town 1.
Rochdale will host Nottingham Forest in the third round of the FA Cup as Matt Done's hat-trick saw off Aldershot.
Done put in Joe Rafferty's cross for Rochdale's opener, only for the Conference side to equalise when Dan Fitchett nodded in Sam Hatton's corner.
But former Shots striker Peter Vincenti hooked in from six yards just two minutes later.
And Done finished off the tie when he scored a one-on-one and then tucked away Calvin Andrew's cut-back.
Aldershot, two divisions below their League One opponents, had earned the replay with a 0-0 draw, but will now focus on improving their 16th-place position in the Conference.
Aldershot Town boss Andy Scott told BBC Surrey:
"The scoreline probably doesn't reflect the game at all, but if you make errors against good sides, they punish you. We got the equaliser and we were on the ascendancy, but to concede a goal a couple of minutes after was criminal.
"It also shows we make mistakes when we have the ball. We've been punished and that's what unfortunately happened. We didn't deserve the 4-1 scoreline.
"We've got to have players learn from mistakes and we will work on things in training and we've got to move the ball better for the whole game against every team we play."
- 3BennettSubstituted forAndrewat 82'minutes
- 8LundSubstituted forHeryat 78'minutes
- 8MolesleySubstituted forPlummerat 79'minutes
- 16ForbesBooked at 90mins
- 23HolmanSubstituted forFitchettat 66'minutes
- Mark Brown
- Shots on Target
Second Half ends, Rochdale 4, Aldershot Town 1.
Kieran Forbes (Aldershot Town) has gone down, but that's a dive.
Kieran Forbes (Aldershot Town) is shown the yellow card.
Goal! Rochdale 4, Aldershot Town 1. Matt Done (Rochdale) right footed shot from very close range to the bottom right corner. Assisted by Calvin Andrew.
Attempt missed. Dan Fitchett (Aldershot Town) header from very close range is too high.
Attempt saved. Sam Hatton (Aldershot Town) right footed shot from outside the box is saved in the top centre of the goal.
Brett Williams (Aldershot Town) wins a free kick in the defensive half.
Foul by Joseph Rafferty (Rochdale).
Corner, Rochdale. Conceded by Jaydon Gibbs.
Substitution, Rochdale. Calvin Andrew replaces Rhys Bennett.
Goal! Rochdale 3, Aldershot Town 1. Matt Done (Rochdale) left footed shot from the centre of the box to the centre of the goal.
Substitution, Aldershot Town. Tristan Plummer replaces Mark Molesley.
Attempt saved. Peter Vincenti (Rochdale) right footed shot from outside the box is saved in the top right corner.
Substitution, Rochdale. Bastien Héry replaces Matthew Lund.
Goal! Rochdale 2, Aldershot Town 1. Peter Vincenti (Rochdale) right footed shot from the centre of the box to the bottom left corner. Assisted by Matt Done.
Goal! Rochdale 1, Aldershot Town 1. Dan Fitchett (Aldershot Town) header from the centre of the box to the bottom right corner. Assisted by Sam Hatton with a cross.
Corner, Aldershot Town. Conceded by Joseph Rafferty.
Glenn Wilson (Aldershot Town) wins a free kick in the attacking half.
Foul by Matt Done (Rochdale).