"It is fantastic to have a player of John's undoubted ability back at the club," Rovers boss Ronnie Moore said.
"He was magnificent for us earlier in the season and it is a great acquisition for us.
"When John was here we had the best defensive record in League One, so hopefully we can get back to that form quickly."