The two teams met again at Adams Park after their first meeting on August 25 was called off due to heavy rain with Bristol Rovers 3-1 up.
But the visitors were always up against it this time around as Joel Grant put the home side ahead after 11 minutes, and Ainsworth came on at half-time to head home his side's second, extending their unbeaten run to three games.
Wycombe took the lead when Grant ran at the Rovers defence and fired past Sam Walker from the edge of the area.
Dean Morgan nearly doubled Wycombe's lead before Bristol Rovers should have equalised on the half hour mark but David Clarkson could only head a Michael Smith cross over the bar.
Ainsworth doubled his side's advantage on 55 minutes with a diving header before Rovers' defeat was compounded when Matt Lund was sent off in injury time for a frustrated lunge.
Torquay substitute Niall Thompson forced a 79th minute winner as the Gulls beat Dagenham 2-1 at Plainmoor
Introduced in the 75th minute, winger Thompson thumped in a cross from the left that flew off Daggers skipper Abu Ogogo and in to earn the home side the three points.
Torquay top scorer Rene Howe had come within inches of an early goal, crashing his first-minute volley off the crossbar from the left after United made a lightning start.
And Howe had a big part to play when Danny Stevens' second goal in two games did put Torquay 1-0 up after 36 minutes. Keeper Chris Lewington failed to hold Howe's cross-cum-shot from the right, palming the ball on to the bar before winger Stevens pounced to drill the ball home from close range.
The Gulls' best move came on 30 minutes as they swept downfield with right winger Billy Bodin cleverly finding Howe, who powered past marker Doe before testing Lewington with a rising angled drive.
Rochdale's second half comeback was not enough to stop York leaving Spotland with the three points as the visitors ended a seven-game run without a win in a 3-2 victory.
York were three goals up by the break and took the lead seven minutes in when the Dale defence failed to deal with Jamal Fyfield's cross from the right and after Jason Walker miscued Michael Potts pounced to score from close range.
Walker managed a better connection in the 19th minute when he made the most of more poor defending from Rhys Bennett to toe-poke the ball past Josh Lillis in the Rochdale goal.
Potts bagged the third in the 35th minute after good approach play from Ashley Chambers, picking his way through the hapless hosts' backline before clipping the ball past Lillis.
Terry Gornell had the home side's best attempt of the half just before the break, a curling drive which beat Michael Ingham but thudded against the post and bounced clear.
Dale's comeback started when Bennett pulled one back in the 61st minute, weaving his way round several York defenders before slipping the ball into the net.
And it was game on in the 83rd minute when Bobby Grant fired home from the spot after Potts' foul on George Donnelly.
Dale pushed hard for a winner but Gary Mills' men hung on for the three much-needed points.