Well i create a php called filter.php
i put this in it
After i add to my site like
(<)?php include("filter.php"); ?(>)
And when is my broser language is one below it works
very slowly but it redirect
when i make my browser language to english or german
page dont want to load ??
WTF WHY ???????
-----------------------------------
<?
$DEFAULT_ROUTE='http://www.domain.com/';
$redirect_map = array (
'zh' => 'http://www.domain.com/free.php',
'zh-cn' => 'http://www.domain.com/free.php',
'zh-tw' => 'http://www.domain.com/free.php',
'zh-sg' => 'http://www.domain.com/free.php',
'zh-mo' => 'http://www.domain.com/free.php',
'zh-hk' => 'http://www.domain.com/free.php',
'tr' => 'http://www.domain.com/free.php',
'ko' => 'http://www.domain.com/free.php',
'ru' => 'http://www.domain.com/free.php',
'ro' => 'http://www.domain.com/free.php',
'cs' => 'http://www.domain.com/free.php',
'fa' => 'http://www.domain.com/free.php',
'hu' => 'http://www.domain.com/free.php',
'pl' => 'http://www.domain.com/free.php',
'bg' => 'http://www.domain.com/free.php',
'ar' => 'http://www.domain.com/free.php',
'yu' => 'http://www.domain.com/free.php',
'mx' => 'http://www.domain.com/free.php',
'ee' => 'http://www.domain.com/free.php',
'ae' => 'http://www.domain.com/free.php',
'sa' => 'http://www.domain.com/free.php',
);
$route = ($redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']]) ? $redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']] : $DEFAULT_ROUTE;
//print $route;
header("Location: $route");
?>
-----------------:
mad:
i put this in it
After i add to my site like
(<)?php include("filter.php"); ?(>)
And when is my broser language is one below it works
very slowly but it redirect
when i make my browser language to english or german
page dont want to load ??
WTF WHY ???????
-----------------------------------
<?
$DEFAULT_ROUTE='http://www.domain.com/';
$redirect_map = array (
'zh' => 'http://www.domain.com/free.php',
'zh-cn' => 'http://www.domain.com/free.php',
'zh-tw' => 'http://www.domain.com/free.php',
'zh-sg' => 'http://www.domain.com/free.php',
'zh-mo' => 'http://www.domain.com/free.php',
'zh-hk' => 'http://www.domain.com/free.php',
'tr' => 'http://www.domain.com/free.php',
'ko' => 'http://www.domain.com/free.php',
'ru' => 'http://www.domain.com/free.php',
'ro' => 'http://www.domain.com/free.php',
'cs' => 'http://www.domain.com/free.php',
'fa' => 'http://www.domain.com/free.php',
'hu' => 'http://www.domain.com/free.php',
'pl' => 'http://www.domain.com/free.php',
'bg' => 'http://www.domain.com/free.php',
'ar' => 'http://www.domain.com/free.php',
'yu' => 'http://www.domain.com/free.php',
'mx' => 'http://www.domain.com/free.php',
'ee' => 'http://www.domain.com/free.php',
'ae' => 'http://www.domain.com/free.php',
'sa' => 'http://www.domain.com/free.php',
);
$route = ($redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']]) ? $redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']] : $DEFAULT_ROUTE;
//print $route;
header("Location: $route");
?>
-----------------:
mad:

Comment