Hi
Thanks for the links, i´m not a PHP expert so i got all day figuring out how to make the redirect in any page, that because i saw the options at the docs, but i think an automatic action could be better for many people. And just now got this to work:
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if($lang == "es"){
$var = substr($page->url,8,3); //8 cause im in localhost at the moment
if($var != "es/"){
header("location:".$page->localUrl("es"));
}
}
else{echo "non spanish";}
If there is something i can improve please let me know, and i don´t know if it would work if being cached. I don´t have any problems with fields.
Edit: I read the info at the internationalization link and have my answer now. Thanks!