Non-League Yeading have switched their FA Cup third round tie against Newcastle to Loftus Road.
The Football Association agreed to the switch because the Ryman League leaders felt that their 3,500-capacity ground, The Warren, was too small.
Yeading will now host the game at QPR's ground on Sunday 9 January.
FA guidelines state that the game had to be played within 20 miles of Yeading's ground - and Loftus Road fell inside that radius.
Yeading spokesman Tim Fuell said: "Safety concerns were the reason we needed an alternative venue and thankfully QPR, a local rival of ours in a way, managed to help us out.
"Once the draw had sunk in, we realised for safety reasons we couldn't play the
game at The Warren and Loftus Road is a very good venue.
"Following the draw, nobody was fully aware of all the rules. The FA makes it very difficult for clubs to switch to the opposing team's venue so the only way could get the game on locally was to move to Loftus Road.
"FA rules changed in recent years and we'll take on Newcastle at Loftus Road
and hopefully cause that upset that many people are hoping for."
Yeading scrapped plans to request a switch to Newcastle's St James' Park on Monday as such a move contravenes FA rules.
The FA moved to strengthen its rules on venues after Farnborough's tie with Arsenal two years ago was switched to Highbury for safety reasons.
Since then clubs have been required to state their maximum capacity and give an undertaking that they can stage all fixtures, regardless of opposition, before the
The FA has also banned the switching of ties for financial reasons.
If games still have to be moved, the nearest available neutral ground must first be considered and any extra income paid into a central pool.