I am using below code for redirection in wordpress
$currentPage = explode('?', $_SERVER ['REQUEST_URI']);
$current_page_url = $currentPage[0];
if($current_page_url == '/e-commerce')
{
header("Location : http://www.mysite.com/complete-e-commerce-solution",true);
}
I am using this code in header.php, i am redirecting to third party site.is that problem?