Ben bunu yapmak istiyorum:
if (user from other website, like google, or input our website URL directly in the browser)
{
//redirect according to browser languge
if (!preg_match('/en-US/', $_SERVER['HTTP_USER_AGENT']))
{
wp_redirect("http://cn.gearor.com");
}
}
Ben deyim, ben URL ve nasıl kontrol etmek için benim web sitesi veya diğer web sitelerine bulunuyor almak için nasıl bilmiyorum ilk yazmak nasıl bilmiyorum. Benim web eğer benim web değilse tarayıcı İngilizce ise, hiçbir şey yapmak, kontrol, değilse, http://cn.gearor.com yönlendirmek