Whittaker has recently been linked with a move to Turkish side Bursaspor, but has now signed a new five-year contract with Rangers instead.
McGregor has signed a new six-year contract with the Scottish side.
A statement on the club’s official website read: “Rangers can today confirm that three-in-a-row heroes Allan McGregor and Steven Whittaker have signed long-term deals with the champions.”