Forum Moderators: phranque
With IE5, as I understand it, if your 404 error page is less than 512 bytes, IE5 will display its own page, not necessarily what you want. So, if you make your page larger than 512 bytes, you're OK....
With IE6, do you get redirected to MSN search when there's any 404 error, or still only when your 404 is less than 512 bytes?
And then is the workaround littleman suggests in the following thread necessary in all cases, or just if your 404 is too small?
[webmasterworld.com...]
The nph-404 script could look something like this:#!/usr/bin/perl
my $dt = gmtime(time);
$dt =~ s/ / 0/g ;
my $dt2 .= $dt;
my ($day,$month,$mday,$time,$year,) = split(/ /,$dt2);
print "$ENV{'SERVER_PROTOCOL'} 200 OK\r\nDate: $day\, $mday $month $year $time GMT\r\nServer: $ENV{'SERVER_SOFTWARE'}\r\nConnecton: close\r\n";
print "Content-Type: text/html\n\n";
print qq¦ No more MSIE splash page! or whatever... ¦;
exit;
There's something I'm not getting. If IE6 only displays the MSN search box if it can't finder your server, how is it going to find your server to run this script?
Also, what is actually displayed when this script is run? I assume it's something in the print qq¦ line. Is it possible to display a custom 404 page using this script, with links, graphics, etc, or do you merely insert an emergency text message with your url after print qq¦ ?
[webmasterworld.com...]