by andrenotgiant · 15y ago · 0 comments
STEP 1: Accessing CakeCentral.com returns a 404 "Not Found" HTTP Code when requested:
1. Go to http://www.rexswain.com/httpview.html and enter in http://cakecentral.com/
2. Take a look at the response codes, see the 404
STEP 2: Previously, inexplicably, _actual_ error pages on CakeCentral.com such as: http://www.google.com/search?q=site:www.cakecentral.com%2Fca... returned 302 redirects to Beerby.com
STEP 3: Beerby.com uses a "Soft" error page, meaning if you type in a URL like: http://www.beerby.com/adfadi you get a 302 TEMPORARY redirect to a 200 OK page.
wget http://cakecentral.com/ --2011-01-14 09:12:50-- http://cakecentral.com/ Resolving cakecentral.com... 174.129.211.41 Connecting to cakecentral.com|174.129.211.41|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2011-01-14 09:13:01 ERROR 404: Not Found.
Once the root page of a site starts returning 404s, we have to start taking guesses about the best way to handle it. Best advice for Cake Central: make sure your root page returns a valid HTML page with a 200 response code.
P.S. If the webhost is trying to do something sneaky, e.g. things work for browsers, but wget or Googlebot is treated differently somehow, the owner of Cake Central can use our free "Fetch as Googlebot" feature in our webmaster console to help diagnose the problem.
Summary: not the weirdest search result I've seen by far. Webhosts that serve up 404s, redirects, or duplicate error pages can cause arbitrary things to happen in search engines. Bing doesn't have the url cakecentral.com indexed at all, for example. Blekko has it, but their page is from Nov. 11, 2010, so they're probably missing the 404 issue by being a couple months older.
cakecentral.com. 90 IN A 174.129.211.41
If you look at http://174.129.211.41/ without a host you'll see that it's a nginx reverse proxy/cacheboth beerby and cakecentral are on EC2.
Pretty likely that an error was made at some point in the cakecentral nginx config to include a beerby EC2 private IP as part of a load balance pool or as the single back end (either fat fingered or by retaining an old IP as instances were stopped and started).
It has since been corrected (probably?), but as cakecentral.com is returning a 404 to robots on their homepage the best, most recent return google has was when it was misdirected.
> Many months ago, if you saw someresult.com/search2.php?url=mydomain.com, that would sometimes have content from mydomain. That could happen when the someresult.com url was a 302 redirect to mydomain.com and we decided to show a result from someresult.com. Since then, we’ve changed our heuristics to make showing the source url for 302 redirects much more rare. We are moving to a framework for handling redirects in which we will almost always show the destination url.
http://www.mattcutts.com/blog/seo-advice-url-canonicalizatio...
alias h='curl -sIw "Time: %{time_total}s\n" -X GET'
This issues a GET on the given URL, printing only the response headers and the time elapsed. Append -L if you want to follow redirects.I thought that the "+" just disabled the spelling/synonym/etc... alterations, while apparently in this query it does some kind of post-filtering for exact matches... (since both words do not appear in the page)
We needed to have a CGI script handle all hits under a certain location, and for various reasons mod_rewrite wasn't an option. So I put something like this in an .htaccess:
ErrorDocument 404 /path/to/script.cgi
I didn't realize until later I needed to explicitly set "Status: 200" in the script's headers. As far as browsers were concerned, everything worked, even IE, since the "error message" (our page content) was long enough to not trigger its built-in error message.