Page is a not externally linkable
jd01 - 3:00 am on Aug 19, 2005 (gmt 0)
I haven't been by the Apache forum in a few days, so I don't know if this has been answered there, but thought it would be good for all to know. The correct error document location should be a server relative path. In this case: ErrorDocument 404 / If not a 302 will be served not a proper 404 'page not found header' - meaning, *all* pages on your site that do not exist are temporarily moved to your index page... this could cause some serious issues, like duplicating your home page every time a page is not found. Justin The default status code for a redirect is a 302.
ErrorDocument 404 http://www.mydomain.com From the Apache Documentation:
Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as "http" in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code.