ozzieonline

Well-Known Member
Dec 20, 2012
126
0
16
cPanel Access Level
Root Administrator
Hi guys,

In the program language PHP there is a $_SERVER array and it contains a parameter REDIRECT_STATUS.

I'm a bit confused where this parameter comes from. Does it come from the visitor's browser, or does it come from the Apache server?

Is this REDIRECT_STATUS the same as "404 not found", "403 forbidden", "200 ok" etc. ?
 

ozzieonline

Well-Known Member
Dec 20, 2012
126
0
16
cPanel Access Level
Root Administrator
Thanks Infopro. However it's not really what I'm looking for. I was just curious what the meaning is of REDIRECT_STATUS. But I think it is just a parameter that stores HTTP status codes like 200, 301, 404, 403 etc.

I think when a page is requested by a browser, the server responds with a code (200 for OK, 403 for Forbidden and so on). This code is being stored in the REDIRECT_STATUS parameter. At least, that is what I think. Can anyone confirm this??