Mediapartners-Google bot and 500 errors

Discussion in 'Site & Server Administration' started by gboethin, Jun 17, 2010.

  1. #1
    Hi all. I've googled and found a number of posts related to the mediapartners-google bot causing 500 errors - none answered my question. It just started happening to me after I redesigned a site of mine.

    The reason I'm getting 500 errors is because the M-G bot is calling a script at my site without passing in parameters. Nowhere on my site does a link to the script without parameters appear. In fact, everything with the exception of form posts use mod-rewrite.

    The one form post (and it is a POST), calls the same universal category/search results script directly, with no mod-rewrite. I'm guessing that form posts by users on my site are resulting in requests for adsense ads where google is getting no more information than the script name, as a result of the fact that it's a post. Since all it's getting is a script name, it's trying that.

    To prevent abuse I have my script setup to throw 500 errors if parameters have been manipulated or clearly haven't been been created at my website. I could setup a default page for a call to the script with no paramters. In fact, that's what I'm going to be doing, unless anyone has any different suggestions.

    Any help would be appreciated.

    Thanks,
    Gregg
     
    gboethin, Jun 17, 2010 IP
  2. gboethin

    gboethin Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, I answered this question myself. I changed the main search form back to a GET and the problem was solved immediately. I'm assuming that when you use a POST google doesn't get the script parameter information... just the URI.
     
    gboethin, Jun 18, 2010 IP