Page 2 of 2
Re: Need help in making en_US url to show in root
Posted: Wed Mar 25, 2009 6:48 pm
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
Re: Need help in making en_US url to show in root
Posted: Wed Mar 25, 2009 6:54 pm
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)
{
Re: Need help in making en_US url to show in root
Posted: Wed Mar 25, 2009 6:56 pm
by alby
nkaushal wrote:
IS this the correct one?
yes and CLEAN your cookie (for this site)
Alby
Re: Need help in making en_US url to show in root
Posted: Wed Mar 25, 2009 7:02 pm
by nkaushal
Cleared the cookies but stiil not working.
Re: Need help in making en_US url to show in root
Posted: Wed Mar 25, 2009 7:57 pm
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
Re: Need help in making en_US url to show in root
Posted: Thu Mar 26, 2009 2:31 am
by nkaushal
Thats a sad news

Can we atleast do a 301 of some pages, say index.htm to index.php and so on?
Re: Need help in making en_US url to show in root
Posted: Thu Mar 26, 2009 6:31 am
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