6
I tried to get the error "status" like this:
error_page 403 /error.php;
error_page 404 /error.php;
But $_SERVER['REDIRECT_STATUS']
return 200
, already in Apache he return 404
(the expected result).
How to define variables $_SERVER[REDIRECT_STATUS]
, $_SERVER[REDIRECT_REQUEST_METHOD]
and $_SERVER[REDIRECT_URL]
using the Nginix?
I’m sorry, I deleted the answer because she was from another question.
– Guilherme Nascimento
http://php.net/manual/en/function.http-response-code.php
– Leandro Curioso
@Curious Leandrocurious But how do I detect the redirect?
– Guilherme Nascimento
Correct "retouch".
– Guill
@Guill in SE communities you can edit posts from other users when you encounter grammatical errors.
– Guilherme Nascimento
I found very little to edit. Some users don’t agree with someone editing their posts for minor errors. But it’s a matter of interpretation. Finally, corrections applied and that’s what matters.
– Guill
So @Guill any issue that favors the SE communities are welcome and if one day you edit some in good faith and the original author still doesn’t like it, I recommend you show this link: http://meta.pt.stackoverflow.com/a/3749/3635 A good afternoon xará (I believe his name is William Too)
– Guilherme Nascimento