Need help with .php causing multiple pages in Google SERP

Discussion in 'PHP' started by Indy001, Mar 1, 2010.

  1. #1
    One of my sites has had a good penalty (I beleive), and I have been trying to figure out why for the longest time. I notcied today when I check a google search of http://www.google.com/search?hl=en&source=hp&q=site:totallysweettattoos.com&aq=f&aqi=&aql=&oq= - one of my pages (for celtic tattoos) was listed many times. It appears that when you hit any page on my site that end in .php, you can add any directory. For example, I have a page http://totallysweettattoos.com/dragon-tattoo-designs.php - and I can add http://totallysweettattoos.com/dragon-tattoo-designs.php/somedirectory/ onto it, and it will not give a 404, but the page without my css applied. Any suggestitions on how to combat this error? I don't know if this is what is causing my google penalty or not (its probably not), but it can't hurt to fix this. This seems to be the case on ym others sites, but they are not showing repeating pages in google.

    Thanks in advance!
     
    Indy001, Mar 1, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use full paths or relative paths like /css/css.css for everything.

    Include <link rel="canonical" href="http://totallysweettattoos.com/dragon-tattoo-designs.php" />
     
    krsix, Mar 1, 2010 IP
  3. Indy001

    Indy001 Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Indy001, Mar 1, 2010 IP
  4. itliberty

    itliberty Peon

    Messages:
    1,173
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    your host might have a feature enable that rather than showing a 404 it selects a close resemblance of the URL...and programatically ignores the extra...
     
    itliberty, Mar 5, 2010 IP
  5. fr3shy

    fr3shy Active Member

    Messages:
    548
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #5
    The same thing works with one of my sites. Not sure why it's not with another... but it definitely has to do with your settings.
     
    fr3shy, Mar 5, 2010 IP
  6. ghazal

    ghazal Member

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #6
    The same thing happened to my site also. :(
     
    ghazal, Mar 5, 2010 IP