Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Huge Duplicate URLs SEO problem impacting our sites

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 804 Views
  • lozhowlett
    Avatar
    Community Member
    146 Posts

    Huge Duplicate URLs SEO problem impacting our sites Link to this post

    Hi Everyone

    We recently launched www.safari.co.uk on the SS3 framework, thinking this would be an improvement, however there are HUGE SEO PROBLEMS!

    Duplicate URLs

    framework/main.php?url=kenya
    sapphire/main.php?url=kenya
    /kenya
    kenya/

    Are all the same! Now we have excluded the top 2 with a robots.text, but the / is a problem. SS3 rewrites links to have a / at the end, thats fine, but why doesnt it rewrite non-slashes to slashes? This is causing instant drop in SERPs, overnight from launching the site. Duplication radar is going mental!

    We have tried lots of htaccess rules, with no sucess...

    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ http://www.safarilocal.co.uk/$1/ [R=301]

    RewriteCond %{REQUEST_URI} !^blog/(.*)$
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]

    There doesnt seem to be something that will play nice with forms, admin and pages that rewrites everything to have a / at the end. We need to consider dataobjects as pages, form posts, etc in the htaccess.

    Please help!

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Huge Duplicate URLs SEO problem impacting our sites Link to this post

    Not sure if this is fixed in 3.1 (I recall a discussion about it) but I have a patch for 2.4 which I used on production sites - http://open.silverstripe.org/ticket/6700

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Huge Duplicate URLs SEO problem impacting our sites Link to this post

    Also, have a look at putting in a rel=canonical link tag. Something like <link rel="canonical" href="$AbsoluteLink" /> should work for any Page.

    804 Views
Page: 1
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.