if(strstr($_SERVER['HTTP_HOST'], 'szturc.eu')) { //echo "".str_replace('.eu', '.cz/en', 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]); header("HTTP/1.1 301 Moved Permanently"); header("Location: ".str_replace('.eu', '.cz/en', 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI])); exit; } //echo ''.$_SERVER['HTTP_HOST'].'----'.$_SERVER['PHP_SELF']; // //if(ICL_LANGUAGE_CODE == 'en') header("Location: https://www.szturc.cz/en/"); //else header("Location: https://www.szturc.cz/"); //exit; ?>