How to redirect traffic based on IP
-
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: https://xxx.org/xxx/ “);
}
else
{
header(“Location: https://xxxx/xxxx.com “);
}
?>Thank you,
Mark
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to redirect traffic based on IP’ is closed to new replies.