The Evil Slash?

Discussion in 'Google Analytics' started by theblurr5495, Jul 29, 2010.

  1. #1
    In google analytics I noticed something unusual today. /soccer-shooting/ and /soccer-shooting are both my top pages. Sure enough when I went to them, there wasn't a redirect.

    Can this count as duplicate content? And if so, how do I fix the problem. Thanks!
     
    theblurr5495, Jul 29, 2010 IP
  2. ARTidas

    ARTidas Active Member

    Messages:
    177
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Sadly, that count for a duplicate content :(

    Try redirecting these with:

    
    if ($REQUEST_URI[strlen($REQUEST_URI)-1] != '/') {
       header('location: '.$whereyouhaveto.'/');
    }
    
    Code (markup):
    Cheers,
     
    ARTidas, Jul 29, 2010 IP
  3. theblurr5495

    theblurr5495 Active Member

    Messages:
    436
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Aw man, no one every told me. There has to be an easier way than doing that every time right? And which one should I make the primary one the / or without the slash.
     
    theblurr5495, Jul 29, 2010 IP
  4. ARTidas

    ARTidas Active Member

    Messages:
    177
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    53
    #4
    I would suggest, make the / the primary.

    You use redirect, ore .htaccess :) your choice... for .htaccess you have to get privileges for the server administration.

    Cheers,
     
    ARTidas, Jul 30, 2010 IP