Need Help, 500 Error problem when from Google

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MichaelP
    Registered User
    • Aug 2003
    • 7124

    #1

    Tech Need Help, 500 Error problem when from Google

    Hello guys,

    I have a strange problem with one of my mainstream clients site. I get a 500 Error when coming from Google

    The site loads up perfectly if you type in the url : sablemarco.com

    But if you do a search on Goggle: Sable Marco (2 words),

    https://www.google.com/search?q=sable+marco

    when you click on the link in Google, you get a 500 Error...

    ***

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Apache Server at Bienvenue | Sable Marco Inc. Port 80

    ****


    Did check and rechecked my code, headers etc.. Can't understand why I get this when coming from Google


    Thanks a lot





    .
  • Klen
    • Aug 2006
    • 32235

    #2
    I see same, when you try to refresh, error repeats, but if you load it from adress bar then it working. Can you check apache error log ?

    Comment

    • CurrentlySober
      Too lazy to wipe my ass
      • Aug 2002
      • 38941

      #3
      Ive got it - Whats wrong that is - Well, at least from my end...

      The direct URL works fine, takes me to http://www.sablemarco.com/en but the link from google, at least the one I'm getting from google, is taking me to http://www.sablemarco.com/en/products.php?cat_id=9

      If I however change the 9 to a 5 (just randomly) it works http://www.sablemarco.com/en/products.php?cat_id=5

      Which leads me to conclude that google is taking you to a page - /products.php?cat_id=9 which is not configured..


      👁️ 👍️ 💩

      Comment

      • CurrentlySober
        Too lazy to wipe my ass
        • Aug 2002
        • 38941

        #4
        OK, perhaps not as the '9' url works as a direct link...


        👁️ 👍️ 💩

        Comment

        • zerovic
          Confirmed User
          • Apr 2010
          • 1116

          #5
          This is weird.

          Same thing happens if you search for the same terms with bing, msn, aol etc.

          I only have one idea atm... Check your .htaccess file for something like this

          RewriteCond %{HTTP_USER_AGENT} {google|yahoo|msn|aol|bing} [OR]
          RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing)
          RewriteRule ^(.*)$ some_file.php?$1
          and delete these lines completely, but make sure to backup .htaccess file first

          Let me know if it helps.

          Cheers,
          z
          php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com

          Comment

          • thezio
            Confirmed User
            • Jan 2018
            • 909

            #6
            Looks like an htaccess issue to me.
            Gay Porn Videos | Jav Boobs | Desikahani2

            Comment

            • MichaelP
              Registered User
              • Aug 2003
              • 7124

              #7
              Yes, that was it... Solved ! TXs all

              Comment

              Working...