The 31-year-old, who famously scored the goal that dumped Chelsea out of the FA Cup when with Barnsley, spent time with Stanley earlier in the season and scored four times in 11 appearances.
He returned to New York Stadium in December but failed to appear for the Millers and is now back in James Beattie's squad.
Speaking on his decision to return to Accrington, he told the Sky Bet League Two club's official website: "I had to think about it for about 0.2 seconds!
"I enjoyed my first spell here and got on really well with everyone, from the fans to the staff and the players and it just felt right to come back and see through what we started earlier in the season.
"The lads have only lost one in the last four and I think that stands us in good stead for the end of the season.
"I'm really looking forward to making a contribution to a successful 2014. As I said, the boys are going really well so I might have to bide my time to get back in the team but that's understandable and hopefully I'll get some time on the pitch soon."
- Sports & Recreation
- James Beattie