News for hackers. Stuff that matters.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by lancefisher on Saturday March 02, 2013 @05:47PM (#5311430)
Looks like it's a cut/paste error. If you do wget www.doioig.gov, this is the page you get. Notice the meta refresh that points to stackoverflow.com.

  <!DOCTYPE HTML>
  <html lang="en-US">
  <head>
      <meta charset="UTF-8">
      <meta http-equiv="refresh" content="1;url=http://stackoverflow.com">
      <script language="javascript">
          window.location.href = "http://www.doi.gov/oig/index.cfm"
      </script>
      <title>Page Redirection</title>
  </head>
  <body>
  If you are not redirected automatically, please click the link to continue to the <a href='http://www.doi.gov/oig/index.cfm'>U.S. Department of the Interior Office of Inspector General.</a>
  </body>
  </html>
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by pmylund on Saturday March 02, 2013 @06:07PM (#5311507)
And here's why: http://stackoverflow.com/a/5411601/620239. Forgot to change that first occurrence after pasting it in. "Oh, it works. I'm done."
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by RKearney on Saturday March 02, 2013 @06:44PM (#5311673)
It has been edited.

Here are the past revisions: http://stackoverflow.com/posts/5411601/revisions

Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by carlisle_ on Saturday March 02, 2013 @07:43PM (#5311914)
I'm actually glad it's been edited. There's an RFC for this, people!!
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by buttscicles on Saturday March 02, 2013 @06:12PM (#5311522)
That's brilliant, surprised that Google managed to rank them so highly because of it though!
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by cleverjake on Saturday March 02, 2013 @07:05PM (#5311760)
.gov domains have a ton of link juice.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by signed0 on Saturday March 02, 2013 @06:22PM (#5311569)
Another good reason why you should always use "example.com".
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by kisielk on Saturday March 02, 2013 @06:41PM (#5311657)
I edited the answer so it says example.com now.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by fidz on Saturday March 02, 2013 @06:28PM (#5311598)
I'm surprised http://example.com is reserved by IANA.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by rwg on Saturday March 02, 2013 @06:42PM (#5311662)
It's reserved per RFC 2606: http://tools.ietf.org/html/rfc2606
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by saraid216 on Saturday March 02, 2013 @06:35PM (#5311629)
...why is that surprising?
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by jthol on Saturday March 02, 2013 @07:57PM (#5311963)
Because it makes sense. These sorts of things normal are allowed to go through so that horrible unintended consequences can be wrought on the unsuspecting.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by libria on Saturday March 02, 2013 @10:21PM (#5312351)
Unless, you know, you want to be in the #1 spot on a Google search.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by adrr on Saturday March 02, 2013 @06:35PM (#5311628)
I bet there's some sort of logic on google's side that states, if a government homepage url redirects to another non .gov URL, that the .gov address should be the canonical page of the site thats being redirected too. Which would explain why stackoveflow's homepage isn't listed in the results. Just a guess.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by takluyver on Saturday March 02, 2013 @07:46PM (#5311928)
I could imagine the ranking favours .gov domains, which should be reliable. But surely for anything Google sees as a redirect, the redirect target should be the canonical URL?
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by KayEss on Saturday March 02, 2013 @08:53PM (#5312118)
>But surely for anything Google sees as a redirect, the redirect target should be the canonical URL?

That would only be the case for a 301 redirect.

Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by nodesocket on Saturday March 02, 2013 @06:36PM (#5311638)
Why would this rank them so high though? Does the googlebot actually follow the http-equiv="refresh". If so, would changing http://stackoverflow.com to say http://dell.com make them rank #1 for searching for dell as well?
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by ajasmin on Saturday March 02, 2013 @06:48PM (#5311688)
That sounds too easy. Also, if doioig.gov redirects to stackoverflow.com that just makes doioig.gov an alias for Stack Overflow. An alias shouldn't rank higher than the real thing.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by 3pt14159 on Sunday March 03, 2013 @06:42AM (#5313420)
There is no rational reason. I said as much and got downvoted by someone.
Re:Stack Overflow ranks #2 for Google Search for "Stack Over... by momchenr on Saturday March 02, 2013 @07:41PM (#5311904)
Glad to know someone who works for the government at least knows where to get their information.