Hi, I'm using CMSMS MLE version 1.7.1
I have everything working perfectly on my MLE website in English and Spanish but there is one thing that is bothering me. The client previoulsy had two separate sites for the two languages and so there are pre-established URLs with high Google rankings. The Spanish site has a .es domain and the English site has a .com domain (e.g. www.sitename.es and www.sitename.com). With MLE now installed the new URL's look like this www.sitename.com/es/about.html and www.sitename.com/en/about.html (I have pretty URLs and mod-rewrite enabled).
Is there a way that the new MLE URL's can be redirected through htaccess or some other means so that the /es and /en paths are not necessary and instead the original URL paths are preserved?
Many thanks for your help.
MLE website url's ending in .com and .es and not .com/en and .com/es?
Re: MLE website url's ending in .com and .es and not .com/en and .com/es?
Of course do backup first. We do not want to break your site, do we ?
Main idea is to set language your way in '/config.php'. Because '/config.php' has no clue about '/config_lang.php' it is important to use the same languages.
Here is the order mle language is set in http://forum.cmsmadesimple.org/index.ph ... #msg204700
You may want dynamically set root_url depending url site is accessed. Insead of simply defining root url use switch statement
should all Spanish links be redirected to '*.es' site or url parameter added, or cookie set, or you name it.
Main idea is to set language your way in '/config.php'. Because '/config.php' has no clue about '/config_lang.php' it is important to use the same languages.
Here is the order mle language is set in http://forum.cmsmadesimple.org/index.ph ... #msg204700
You may want dynamically set root_url depending url site is accessed. Insead of simply defining root url use switch statement
The rest of mods depends on the way languages are handled (let say English is main Spanish is secondary lang):switch ($_SERVER['SERVER_NAME']){
case 'sitename.es':
case 'www.sitename.es':
case 'sitename.com':{
$config['root_url'] = 'http://'.$_SERVER['SERVER_NAME'];
break;
}
default:{
$config['root_url'] = 'http://www.sitename.com'; /*default address*/
break;
}
}
should all Spanish links be redirected to '*.es' site or url parameter added, or cookie set, or you name it.