adamus007p Posted February 18, 2012 Share Posted February 18, 2012 Hi, how ot change mysite.com/en/ to mysite.com only for main website for other category for en and for other languages I want to leave by default mysite.com/de/ mysite.com/fr/ mysite.com/en/category-xxxx/xxxx mysite.com/en/category-xxxx/22222 etc. only first website I would like to have without en which is my default language Link to comment Share on other sites More sharing options...
jeyjoo Posted February 20, 2012 Share Posted February 20, 2012 Me too. For SEO purposes: Main site www.varaldocosmetica.it (and NOT www.varaldocosmetica.it/it/) English site www.varaldocosmetica.it/en/ Thanks Link to comment Share on other sites More sharing options...
renamed_account_335778 Posted March 9, 2012 Share Posted March 9, 2012 For that, you must "hack" the Link::getLangLink function and the .htaccess For the first: /classes/Link.php (it's recommended override the class) protected function getLangLink($id_lang = NULL) { if (!$this->allow OR Language::countActiveLanguages() <= 1) return ''; global $cookie; if (!$id_lang) $id_lang = (int)$cookie->id_lang; // NEW CODE if ($id_lang == 1) // if it's english return ''; // END NEW CODE return Language::getIsoById((int)$id_lang).'/'; } On .htaccess change all lines with /en/ for / (Or hack the .htaccess generator) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now