Page 1 of 1

Changing URL from en_US to just en..

Posted: Tue Sep 08, 2009 12:10 am
by eddie67
Hello.

I want to have my URL like mydomain.com/en/home.php instead of mydomain.com/en_US/home.php.
I have been searching around for this, there is a reference in another post to the howto on this, but I am not able to find it.

I'm using MLE 1.6.3.

Can anyone point me in the right direction?

Many thanks.

Eddie.

Re: Changing URL from en_US to just en..

Posted: Thu Sep 24, 2009 8:44 pm
by alby
eddie67 wrote: I want to have my URL like mydomain.com/en/home.php instead of mydomain.com/en_US/home.php.
I have been searching around for this, there is a reference in another post to the howto on this, but I am not able to find it.

I'm using MLE 1.6.3.

Can anyone point me in the right direction?
I don't remember if in MLE 1.6.3 you can change LabelURL (in next release yes).
1. backup config_lang.php
2. edit config_lang.php
3. change en_US with en:
$hls = array(

'en' => array(
'locale_cms'=>'en_US',
'block'=>'en',
'parent'=>'en',
'flag'=>'',
'text'=>'English',
'locale'=>'en_US.UTF-8'
),

....
);
4. enter in admin Global Settings > MLE languages and correct DEFAULT LANGUAGE
5. clean your browser cookies for that site

Alby