httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: retain params while redirecting 404 error to script
Date Sun, 17 Mar 2002 17:03:31 GMT
JH Foo wrote:
>>>So for example if I type, Apache should
> catch this as a 404 error.
>>>I have configured Apache to handle 404 errors via the following:
>>>AllowOverride FileInfo
>>>ErrorDocument 404 /cgi/
>>>Basically Apache calls the script. But because the script requires a
> parameter (in the above example, 'id'), the value did not get passed over.
>>>Is there any solution to this problem? If so, please advise.

When running into these types of problems, it is always best to see ALL 
the variables that apache is giving you.  For example, try pointing your 
ErrorDocument 404 at /cgi-bin/printenv or a similar script.

If you did this, you would see that the QUERY_STRING from the original 
request is available in REDIRECT_QUERY_STRING.

It would be nice if this was documented.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message