The question has been asked by many people. I have tried following solutions so far and non of them are working for me. Can anyone help me with this. Thank you in advance.
wp_redirect('http://www.local.abc.com/xyz', 301 ); exit;
Read more here: The page isn’t redirecting properly was given when redirecting