Replies: 0
Hi,
what’s the correct code to redirect traffic based on IP with your plugin. I tried like that but it didn’t work.
<?php
$country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];
if($country_code==”us”){
header(“Location: http://xxx.org/xxx/ “);
}
else
{
header(“Location: http://xxxx/xxxx.com “);
}
?>
Thank you,
Mark