It bothered me that the menu system linked to my home page (
www.example.com) as
www.example.com/home.html so I modified the getURL() method of the content class so that if mDefaultContent is true it just returns root_url. This improves the page ranking of the home page as it now appears as just one page rather than two separate pages. Someone who knows cmsms better than me will have to tell me if this breaks anything but in my limited testing it seems to work:
in the getURL() method of the ContentBase class in lib/classes/class.content.inc.php (line 1219 in v0.12) change this
Code: Select all
if ($config["assume_mod_rewrite"] && $rewrite == true)
to this
Code: Select all
if($this->mDefaultContent)
{
$url = $config["root_url"];
}
elseif ($config["assume_mod_rewrite"] && $rewrite == true)