1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicate content?

Discussion in 'White Hat SEO' started by zerofoxtrot, May 6, 2012.

  1. zerofoxtrot

    zerofoxtrot Senior Member

    Joined:
    Dec 17, 2011
    Messages:
    810
    Likes Received:
    539
    Apparently seomoz.org detects my URL with duplicate content/title while it's the same page, how do I fix this?

    Image:

    [​IMG]

    You see it says duplicate title/content while it's the same page, how do I fix this? Thanks.
     

    Attached Files:

  2. zerofoxtrot

    zerofoxtrot Senior Member

    Joined:
    Dec 17, 2011
    Messages:
    810
    Likes Received:
    539
    bump!
     
  3. Walker2k11

    Walker2k11 Junior Member Premium Member

    Joined:
    Mar 18, 2011
    Messages:
    104
    Likes Received:
    16
    Do you have a non-www to www, or vice versa, redirect in place?
     
    • Thanks Thanks x 1
  4. zerofoxtrot

    zerofoxtrot Senior Member

    Joined:
    Dec 17, 2011
    Messages:
    810
    Likes Received:
    539
    Yeah, I got a redirect using .htaccess

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^([a-z.]+)?website\.net$ [NC]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .? http://www.%1website.net%{REQUEST_URI} [R=301,L]
     
  5. milian

    milian Power Member

    Joined:
    Jan 9, 2010
    Messages:
    515
    Likes Received:
    69
    Occupation:
    SEO stuff
    Location:
    Around
    looking at that graph, is it not the trailing index.html thats its flagging up?

    this should redirect /index.html to your root url:

    RewriteCond %{THE_REQUEST} /index.php HTTP
    RewriteRule (.*)index.php$ /$1 [R=301,L]
     
    • Thanks Thanks x 1
  6. zerofoxtrot

    zerofoxtrot Senior Member

    Joined:
    Dec 17, 2011
    Messages:
    810
    Likes Received:
    539
    Using the code you provided gives me error 500.
     
  7. subster

    subster Elite Member

    Joined:
    Apr 5, 2008
    Messages:
    1,864
    Likes Received:
    1,448
    Location:
    Krauthausen
    Activate mod_rewrite on your server. Mostly you can do this by editing the php.ini - if you a re on a shared host, just ask you provider.
     
    • Thanks Thanks x 1
  8. zerofoxtrot

    zerofoxtrot Senior Member

    Joined:
    Dec 17, 2011
    Messages:
    810
    Likes Received:
    539
    Does this issue conflict with SERP? Because in search results they appear correctly...
     
  9. milian

    milian Power Member

    Joined:
    Jan 9, 2010
    Messages:
    515
    Likes Received:
    69
    Occupation:
    SEO stuff
    Location:
    Around
    Thats the only thing with htaccess, there are so many different ways of doing the same redirect, and when you don't have the site in front of you, you don't know which ones are going to work and which one will break the site.

    try this one: (if this one doesnt work, Google 'redirect trailing index file' and you will find other way to do it)

    RewriteCond %{HTTP_HOST} ^www\.sitenamehere\.com$ [NC]
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule ^index\.html$ http://www.sitenamehere.com/? [R=301,NE,NC,L]


    If his other redirect is working, this must already be on.


    don't want to state the obvious, but this is actually working yeah?


    Not right now as its not in the SERPS, but trailing /index.html duplicates of the home page, and duplicates such as 'www' and 'non-www' can get indexed causing duplicates content, and link juice can be lost if links have been built to different versions that are in SERPS. So yeah a redirect should be used, or canonical if you cat get the redirect working.