Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    16,429
    Likes Received:
    415
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice