Celtic will travel to either Latvia or San Marino in the third qualifying round of the Europa League.
The Scottish champions will play the winners of Riga or Tre Fiori on September 24. Neil Lennon's side enter the Europa League at this stage after losing their Champions League second qualifying round tie against Ferencvaros last week.
Rangers will travel to either Luxembourg's Progres Niederkorn or Dutch side Willem II if they beat Gibraltar's Lincoln Reds in their second-round qualifying game. The Glasgow giants have played Progres twice in the past three seasons and have not won either away tie.
Pedro Caixinha's team suffered an embarrassing 2-0 defeat in Luxembourg in July 2017 which sent them crashing out 2-1 on aggregate in the first qualifying round in 2017-18.
With Steven Gerrard at the helm, Rangers exacted revenge with a 2-0 first-leg victory last year, but they were held to a goalless draw in the second leg.