Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » /home = Bad SEO

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 6198 Views
  • -RC-
    Avatar
    2 Posts

    /home = Bad SEO Link to this post

    Hi all,

    I searched to see if this has been covered before, but couldn't find anything.

    I'm on version 2.1 and it seems that I cannot set the url of "home" to /

    Having the root of the site / and /home resolve to the same place means that google will treat your homepage as duplicate content. Very bad for SEO.

    I assume the only current solution is to set "home" not to show on menus and then hack the menu code to include home linking to /

    However, if you then ever use the "link to a page in this site" feature in the content, you will get a link to /home.

    Any advice? Have I missed something simple here?

    Thanks,
    -RC-

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: /home = Bad SEO Link to this post

    Hmmm, does the default system not have "/" work as home? E.g. silverstripe.com and demo.silverstripe.com both dont redirect to /home automatically

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: /home = Bad SEO Link to this post

    The link in the menu seems to refer to /home but when click you arrive at /.
    So they do both refer to the same place. Setting the link to / doesn't seem to be possible.

  • -RC-
    Avatar
    2 Posts

    Re: /home = Bad SEO Link to this post

    Sigurd: I am referring to the /home menu link, which redirects to the root, not the other way round.
    http://demo.silverstripe.com/home/

    It seems I spoke too soon, /home does a 302 to /, which is not too bad for SEO, however being able to set the link for "home" to "/" would be better, IMHO!

    -RC-

  • siulun
    Avatar
    14 Posts

    Re: /home = Bad SEO Link to this post

    Ideally for me, I would like to set / as a "landing" page and /home as the "home" page... tbh, and also allow the "home" page to be set to "/", so I can have the best of both worlds when I need it!

  • Fabie
    Avatar
    Community Member
    28 Posts

    Re: /home = Bad SEO Link to this post

    Hello RC, Sigrud,

    I have also noticed this in one of our newly developed Silverstripe site.

    The www.mysite.com/home does a 302 (temporary) redirect to www.mysite.com/ - the problem is that Google now has problem indexing the www.mysite.com as in the automatically generated sitemap it lists www.mysite.com/home. When Google spiders the /home it sees the 302 redirect and the Googlebot. Google's flag below:

    URLs not followed
    When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted.

    Now, is there a way to edit the auto generated sitemap ( i mean change the /home to /?)

    Has anyone experienced this or found a permanent fix? It is rather concerning that Google does not index the homepage of a site!!!

    Thank you very much for any help you can provide,

    fabie

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: /home = Bad SEO Link to this post

    I raised this as a bug 4 months ago and it'd be awesome for someone to provide a patch, it can't be that hard

    http://open.silverstripe.com/ticket/1654

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: /home = Bad SEO Link to this post

    A simple solution:

    open up sapphire/misc/googlesitemap.php and around line 33/34 include:

    if($page->AbsoluteLink() == Director::absoluteBaseURL()."home/")
    {
       $page->PageLink = Director::absoluteBaseURL();
    }
    else
    {
       $page->PageLink = $page->AbsoluteLink();
    }

    Then in sapphire/templates/GoogleSiteMap.ss

    replace

    <loc>$AbsoluteLink</loc>

    with

    <loc>$PageLink</loc>

    6198 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.