The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

redirect status

Discussion in 'General Discussion' started by ozzieonline, Feb 8, 2013.

  1. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    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. ?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    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??
     
Loading...

Share This Page