"http://www.example.com/
I don't recall doing anything special for this to happen - it just does.
However, on a CMSMS website that I now look after the menu is linking to this URL when you click on the Home page link:
"http://www.example.com/home
Content-wise this is fine. It shows the same as root (/). But Google sees this as duplicate content.
How can I get the menu to link to the root (/) not /home?
I have compared all sorts of settings between this and another site and I cannot see anything obvious that is causing it.
In my config.php I have:
Code: Select all
$config['root_url'] = 'http://www.example.com';
And - related - I have this in the template of all pages:
Code: Select all
{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
"http://www.example.com/home
and yet the exact same canonical code on another site (same CMSMS version even) produces a URL like:
"http://www.example.com/
Anybody?
