Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

REDIRECT_STATUS

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


roydellray at gmail

Aug 29, 2012, 9:54 PM

Post #1 of 2 (355 views)
Permalink
REDIRECT_STATUS

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


mark at catseye

Aug 30, 2012, 5:47 AM

Post #2 of 2 (344 views)
Permalink
Re: REDIRECT_STATUS [In reply to]

On August 30, 2012 0:54 , Roy Dellray <roydellray [at] gmail> 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 [at] catseye


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.