Blackburn kept up their chase for a play-off place as Jordan Rhodes’s late goal secured victory over Rotherham.
Midfielder Craig Conway gave Rovers the lead with a superb curling effort from 20 yards.
Rotherham were dominant after the break and deservedly drew level when Matt Derbyshire poked home Paul Green’s low cross.
But Blackburn snatched victory when Rhodes stabbed home a loose ball after poor defending from the Millers.
The winner came two minutes after the hosts had hit the post through Rudy Gestede.
Rotherham still had time to find an equaliser but Green put a free header wide when presented with a golden chance.
Blackburn remain ninth, ten points behind the final play-off position, occupied by sixth-placed Brentford.
Rotherham drop to 19th, just three points above the relegation zone.