Need help in making en_US url to show in root
Need help in making en_US url to show in root
We are using CMS Made Simple 1.4.1 and the url structure which is showing right now is:
http://www.site.com/en_US/
Where we want it to be http://www.site.com/
Can you please help. We have mod_rewrite on and config_lang.php has define('DEFAULT_LANG', 'en_US');
http://www.site.com/en_US/
Where we want it to be http://www.site.com/
Can you please help. We have mod_rewrite on and config_lang.php has define('DEFAULT_LANG', 'en_US');
Re: Need help in making en_US url to show in root
I suppose that you use MLE mod, right?nkaushal wrote: We are using CMS Made Simple 1.4.1 and the url structure which is showing right now is:
Alby
Re: Need help in making en_US url to show in root
I am using htaccess to manage urls. Here is my config.php url settings:
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.htm';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.htm';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Re: Need help in making en_US url to show in root
You still didn't answer alby question, are you using the MLE edition of cmsms?...
I mean if you don't tell us what your using we can only shoot in the dark here...
I mean if you don't tell us what your using we can only shoot in the dark here...
Re: Need help in making en_US url to show in root
How can I find it?
Re: Need help in making en_US url to show in root
Where and what you download CMSMS package?nkaushal wrote: How can I find it?
Alby
Re: Need help in making en_US url to show in root
Existing webmaster left and we overtook this site, so honestly speaking no idea where it was downloaded from. If you like I can post the url.
Re: Need help in making en_US url to show in root
Oh ok, see this is why we always say the more info you can give first time the better...
Look in root do you see any files called config_lang or is there a folder called mle?...
Look in root do you see any files called config_lang or is there a folder called mle?...
Re: Need help in making en_US url to show in root
Yes there is a folder called mle and there also is a file config_lang.php in root
Re: Need help in making en_US url to show in root
ok, it's MLEnkaushal wrote: Yes there is a folder called mle and there also is a file config_lang.php in root
for that you want depend of your skill:
you must edit one php file
or
waiting new release (about 1 week) but in this case you must upgrade to new version
Alby
Re: Need help in making en_US url to show in root
I will take my chance with editing php file.
Can you please help me in that?
Can you please help me in that?
Re: Need help in making en_US url to show in root
nkaushal wrote: I will take my chance with editing php file.
Can you please help me in that?
lib/classes/class.content.inc.php:
uncomment two rows (drop # character in front of)$config = &$gCms->GetConfig();
$url = "";
$alias = ($this->mAlias != ''?$this->mAlias:$this->mId);
/* use root_url for default content */
if($this->mDefaultContent) {
//Start MLE
#$url = $config['root_url']. '/';
#return $url;
//End MLE
}
if ($config["assume_mod_rewrite"] && $rewrite == true)
{
if ($config['use_hierarchy'] == true)
Alby
Re: Need help in making en_US url to show in root
I have done the changes as mentioned below, but its still going to en_US
$config = &$gCms->GetConfig();
$url = "";
$alias = ($this->mAlias != ''?$this->mAlias:$this->mId);
/* use root_url for default content */
if($this->mDefaultContent) {
#$url = $config['root_url']. '/';
#return $url;
}
if ($config["assume_mod_rewrite"] && $rewrite == true)
{
if ($config['use_hierarchy'] == true)
{
$config = &$gCms->GetConfig();
$url = "";
$alias = ($this->mAlias != ''?$this->mAlias:$this->mId);
/* use root_url for default content */
if($this->mDefaultContent) {
#$url = $config['root_url']. '/';
#return $url;
}
if ($config["assume_mod_rewrite"] && $rewrite == true)
{
if ($config['use_hierarchy'] == true)
{
Re: Need help in making en_US url to show in root
You missed one of the #...