Need help in making en_US url to show in root

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

Re: Need help in making en_US url to show in root

Post by alby »

nkaushal wrote: 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)
    {
Humm, you must drop # this character

Alby
nkaushal
Forum Members
Forum Members
Posts: 11
Joined: Tue Mar 24, 2009 4:11 pm

Re: Need help in making en_US url to show in root

Post by nkaushal »

IS this the correct one?

$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)
    {
alby

Re: Need help in making en_US url to show in root

Post by alby »

nkaushal wrote: IS this the correct one?
yes and CLEAN your cookie (for this site)

Alby
nkaushal
Forum Members
Forum Members
Posts: 11
Joined: Tue Mar 24, 2009 4:11 pm

Re: Need help in making en_US url to show in root

Post by nkaushal »

Cleared the cookies but stiil not working.
alby

Re: Need help in making en_US url to show in root

Post by alby »

nkaushal wrote: Cleared the cookies but stiil not working.
Then maybe I have realized only now that you want drop en_US from "all links" and not only from home.
Sorry, this is not possible because should "live" on cookie only and not everyone has cookies enabled

Alby
nkaushal
Forum Members
Forum Members
Posts: 11
Joined: Tue Mar 24, 2009 4:11 pm

Re: Need help in making en_US url to show in root

Post by nkaushal »

Thats a sad news :(
Can we atleast do a 301 of some pages, say index.htm to index.php and so on?
alby

Re: Need help in making en_US url to show in root

Post by alby »

nkaushal wrote: Can we atleast do a 301 of some pages, say index.htm to index.php and so on?
Probably you have mod_rewrite enable or internal pretty_url?
Look for $config['page_extension'] = ''; in config.php and for mod_rewrite change last row of your .htaccess

Alby
Locked

Return to “[locked] CMSMS MLE fork”