The friendly between Linfield and Rangers to raise money for the crisis-hit Scottish club will be played at Windsor Park on Monday, 7 May.
Rangers, who entered administration in February, have been regular visitors to the Belfast club for pre-season games.
"Rangers fans have been magnificent and our NI supporters will be rewarded with a game that will help us in difficult times," said manager Ally McCoist.
"We enjoy great support from Belfast and we look forward to the game."
Rangers won 4-1 in the last meeting between the sides at Windsor Park in July 2011, with Kane Hemmings scoring his first goal for the Ibrox club.
The Scots have confirmed that their first-team squad will play in the friendly, which has a 1500 BST start.
"It is an honour and privilege to be captain of Rangers and Northern Ireland so it will be nice to return to Windsor Park on club business," said Steven Davis.
"We have received unbelievable support from fans worldwide in recent months which we all appreciate and the players are all looking forward to returning to Belfast."