i'm using a php redirection script, it gives me a continues loop error for the default redirection this is the code
<?php
// ccr.php - country code redirect
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$country_code = $geoplugin->countryCode;
switch($country_code) {
case 'US':
header('Location: http://www.domain.com/en');
exit;
case 'FR':
header('Location: http://www.domain.com/fr');
exit;
case 'BE':
header('Location: http://www.domain.com/fr');
exit;
default: // exceptions
header('Location: http://www.domain.com');
exit;
}
?>