Changing URL from en_US to just en..

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
eddie67
Forum Members
Forum Members
Posts: 40
Joined: Tue Feb 05, 2008 6:31 am

Changing URL from en_US to just en..

Post 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.
alby

Re: Changing URL from en_US to just en..

Post 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
Locked

Return to “[locked] CMSMS MLE fork”