News for hackers. Stuff that matters.
Re:Google hijacking 404 error pages by jkush on Tuesday February 12, 2008 @10:16AM (#114030)
IE 7 does the same thing. A few months ago we had to set up a special 404 page for a broken link that was accidentally emailed out to hundreds of people. It was simple, the 404 page would check to see if the requested url was the bad link sent via email, if it was, it would redirect to the appropriate page. If not, we'd show a 404 page.

Worked great in FF but totally broke in IE7. Why? Because the 404 page size was under 1Kb, IE7 decided that our 404 page wasn't informative enough and supplied it's own.

The solution, as stupid as it sounds was to add enough white space to the file until it was larger than 1Kb.

And, you know, also stop sending broken links out.

Re:Google hijacking 404 error pages by ash on Tuesday February 12, 2008 @10:54AM (#114051)
303 or 307 redirection had to be used in the first place, I think.
Re:Google hijacking 404 error pages by run4yourlives on Tuesday February 12, 2008 @12:02PM (#114113)
301 no? It's a bad url after all...
Re:Google hijacking 404 error pages by jkush on Tuesday February 12, 2008 @12:49PM (#114150)
Yeah, you're both right. This was a quick and dirty because people were starting to open emails. We ended up fixing it for real after our quick and dirty solution. The only reason I mentioned it to begin with was to point out that IE7 hijacks 404 pages too.