You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2003/04/03 23:54:57 UTC

Re: [users@httpd] Error documents

On Thu, 3 Apr 2003, P. Dwayne Miller wrote:

> Question... I would like to create an error page in HTML (actually I
> already have one) and have Apache present this page instead of other
> error messages.  What I would like to have happen that is a little
> different than the way Apache currently handles error documents is
> this...  I don't want a redirect to the error page... I just want my
> error page spit out instead of the requested page that caused the error.

Apache only sends a redirect if you use a full URL (starting in http://).
If you do something like
ErrorDocument 404 /error/page.html
then apache will not send a redirect; it will simply deliver the content
as you want.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org