krisp
29-12-09, 04:35
Silakan lihat beberapa link yang ditemukan Googlebot setelah saya menambahkan bahasa "cs":
situs: www.thegame-online.dk/cs - Google-søgning
vbenterprisetranslatoor_seo.php sudah diperbarui sebelum menambahkan bahasa:
if(isset($_GET['vbet_lang'])) {
if (false === strpos($_SERVER['REQUEST_URI'], '/'.$_GET['vbet_lang'].'/')) {
$_GET['language'] = $_GET['vbet_lang'];
$_GET['force_redirect'] = true;
header("HTTP/1.1 301");
} else {
$_GET['language'] = $_GET['vbet_lang'];
$_SERVER['REQUEST_URI'] = $_GET['redirected'];
$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
}
$_SERVER['QUERY_STRING'] = str_replace('vbet_lang='.$_GET['language'].'&redirected='.$_GET['redirected'], '', $_SERVER['QUERY_STRING']);
}
if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php')) {
$_GET['language'] = $_COOKIE['vbet_language'];
$_GET['force_redirect'] = true;
}
situs: www.thegame-online.dk/cs - Google-søgning
vbenterprisetranslatoor_seo.php sudah diperbarui sebelum menambahkan bahasa:
if(isset($_GET['vbet_lang'])) {
if (false === strpos($_SERVER['REQUEST_URI'], '/'.$_GET['vbet_lang'].'/')) {
$_GET['language'] = $_GET['vbet_lang'];
$_GET['force_redirect'] = true;
header("HTTP/1.1 301");
} else {
$_GET['language'] = $_GET['vbet_lang'];
$_SERVER['REQUEST_URI'] = $_GET['redirected'];
$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
}
$_SERVER['QUERY_STRING'] = str_replace('vbet_lang='.$_GET['language'].'&redirected='.$_GET['redirected'], '', $_SERVER['QUERY_STRING']);
}
if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php')) {
$_GET['language'] = $_COOKIE['vbet_language'];
$_GET['force_redirect'] = true;
}