Thanks in advance,
Christoph Vogel
Read http://www.apacheweek.com/issues/99-04-09:Quote:> But it doesn't work with IE
"The first new "feature" is that MSIE 5 may replace a site's own error
messages with its in-built error pages. This occurs if the error page from
the site is less than a particular size. For most errors, this is 512 bytes.
If the error page from the site is more than 512 bytes, MSIE 5 will display
the site's error message, otherwise it will not display it. For a few
statuses (403, 405 and 410), the cut-off size is 256. The solution to this
problem is to ensure that all error pages are greater than 512 bytes.
However note that most of Apache's built in error messages will be lesss
than 512 bytes, so the only way to ensure that viewers see the site's real
error pages is to use ErrorDocument. Microsoft explain how to use the
registry or IE's options to turn off this "feature"."
If your error document's size fits, it also works with IE. The problem is
specific to IE5, I think.
All you need to do is add the following lines to your httpd.conf file:
ErrorDocument 404 http://name.of.server/errordocs/404.html
ErrorDocument 403 http://name.of.server/errordocs/403.html
ErrorDocument 401 /errordocs/401.html
Works 100% perfectly with IE, Netscape, and everything else I've
tried.
Simply create documents entitled 404.html, 403.html and so forth,
stick them in a directory called errordocs which is a directory off
the root server directory, and add these to httpd.conf. Reboot the
daemon, and away it goes. There is really nothing particular complex
here.
1. IE shows 404 page for 404 status response
After reading the subject, I'm sure you're thinking "duh...", but hear me
out.What I'm trying to do is make a custom error page, so instead of 404
errors the user sees my custom made error page. In netscape, it returns my
custom page and all works great. Then I look at it in IE5 and I see the same
bland 404 document I've seen a million times (This is the windows 404
document, not something apache returned to it). I guess what happens is IE
sees "status 404" and says "Oh, well I'll display my 404 document then". The
end result is IE users aren't seeing my custom 404 page.
Is there any way to force apache to NOT return the 404 status when a 404
error occurs, and instead just silently display my custom page like it was
the one requested?
LKembel
2. Printing from Sol 2.5 - Banner
5. APACHE: User Defined 404 Pages
7. Can Redirect 404 Page not found error to Real Application?
10. Apache: User Controlled 404 Page?
11. Setup Custom 404 Error page
12. 404 Error, yet page is found...
13. Apache 1.3 : Linking to a specific page when "HTTP 404 - File not found"