wamp server REDIRECT_STATUS

Posted by user143039 on Server Fault See other posts from Server Fault or by user143039
Published on 2012-10-28T06:42:26Z Indexed on 2012/10/28 11:05 UTC
Read the original article Hit count: 225

Filed under:
|
|
|

I have noticed my remote server returns $_SERVER[REDIRECT_STATUS] with every request.

Example: [REDIRECT_STATUS] => 200

But my localhost wamp server does not.

Interestingly, when I manually set a header:

Example: header('HTTP/1.1 302 Redirect This');

The variable: $_SERVER[REDIRECT_STATUS] is still not set. Though I can view the headers, including the one I set, with HttpFox.

$_SERVER[REDIRECT_STATUS] is set when .htaccess throws(?) an ErrorDocument, like ErrorDocument 404 for example.

Any ideas how to get wamp server to set the variable $_SERVER[REDIRECT_STATUS] with every request?

© Server Fault or respective owner

Related posts about php

Related posts about wamp