Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
GEO Redirection..............
<?php
// Next two lines are for HostGator
require_once 'Net/GeoIP.php';
$geoip = Net_GeoIP::getInstance('GeoIP.dat');
try {
$country = $geoip->lookupCountryCode($_SERVER['REMOTE_ADDR']);
switch((string)$country) {
case 'GR':
$url = "http://xxx.html";
break;
case 'PH':
$url = "http://xxx.html";
break;
}
header('Location: '.$url);
} catch (Exception $e) {
// Handle exception
}
?>
HOw do i put this inside the html file??? I tried pasting it and it didnt work
<?php
header( 'Location: http://affportal-lb.bevomedia.com/direct_link/direct-link/id/VUDNIFLWUZR/adVar/a1' ) ;
?>
// Next two lines are for HostGator
require_once 'Net/GeoIP.php';
$geoip = Net_GeoIP::getInstance('GeoIP.dat');