GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Need Help, 500 Error problem when from Google (https://gfy.com/showthread.php?t=1319941)

MichaelP 11-20-2019 07:14 AM

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 :) :thumbsup :thumbsup :thumbsup :)





.

Klen 11-20-2019 07:55 AM

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 ?

CurrentlySober 11-20-2019 08:08 AM

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..

CurrentlySober 11-20-2019 08:34 AM

OK, perhaps not as the '9' url works as a direct link... :(

zerovic 11-20-2019 08:49 AM

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

Quote:

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

thezio 11-20-2019 08:54 AM

Looks like an htaccess issue to me.

MichaelP 11-20-2019 04:28 PM

Yes, that was it... Solved ! TXs all :) :thumbsup:thumbsup:thumbsup


All times are GMT -7. The time now is 05:58 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123