The midfield duo passed medicals with the Ladbrokes Championship leaders early on Wednesday afternoon.

Both men are out of contract at the end of the season and will join their new club in the summer.

Windass said on Twitter last night; "Long day but finally put pen to paper with @RangersFC and signed until 2020 .. Huge club with ambitions of European football . Can't wait"

The 21-year-old midfielder played for Railway during the 2012/13 season under then boss Billy Miller.

He spent six weeks on trial at Manchester City during his stint at Station View before breaking his at Mossley on the final day of the season.

He left the Starbeck outfit after signing professional terms at Accrington.

Miller said: "I am immensely proud of Josh. I still communicate with him quite a lot.

"The kid has done it the right way. He came out of the professional game and didn't get bogged down.

"He came down and had a year with us and just enjoyed his time and got a smile back on his face.

"He worked harder than anyone else and he deserves his chance."

Windass is the son of Hull City legend and Sky Sports pundit Dean, who has repeatedly called for the goalscorer to seek a move away from Stanley. Miller said the winger had aways promised to emulate his father.

He added: "Football is in his DNA and he was always so determined about being as successful as his dad. So it was never in doubt.

"The kid was always destined for better things. We were just glad to have him around for a year or two and feel lucky to have been part of his journey. It's up to him now.

"He is a bright kid and with the right advice from his dad, he will move to the right place at the right time."