I am using below code for redirection in wordpress
$currentPage = explode(\'?\', $_SERVER [\'REQUEST_URI\']); $current_page_url = $currentPage[0]; if($current
Any chance of getting /e-commerce from $currentPage[0]? The '/e-commerce' looks more like something that would be found at $currentPage[1].
/e-commerce
$currentPage[0]
'/e-commerce'
$currentPage[1]