location = old-address { return 301 new-address; }
Не забудьте сделать рестарт сервера service nginx restart