You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roy Dellray <ro...@gmail.com> on 2012/08/30 06:54:39 UTC

[users@httpd] REDIRECT_STATUS

Hey guys, can anyone tell me about "REDIRECT_STATUS"
trying to use it and get am "Undefined Index" error

Re: [users@httpd] REDIRECT_STATUS

Posted by Mark Montague <ma...@catseye.org>.
On August 30, 2012 0:54 , Roy Dellray <ro...@gmail.com> wrote:
> Hey guys, can anyone tell me about "REDIRECT_STATUS"
> trying to use it and get am "Undefined Index" error

You are probably getting this error from an interpreter (e.g., PHP) in 
which you are running a script.  In this case, the error means that 
Apache HTTP Server simply has not set the REDIRECT_STATUS variable in 
the script's environment.  The most likely causes of this is that your 
script is either running when an error redirect did NOT occur, or it is 
running when an error redirect was done to a fully specified URL 
(starting with "http://" or "https://") rather than a URI path (starting 
with "/").

See https://httpd.apache.org/docs/current/custom-error.html#variables

In general, you should check to see whether the environment variable 
REDIRECT_STATUS is set before attempting to use it; this will avoid the 
error message you are getting.

--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org