Answer the question
In order to leave comments, you need to log in
Nginx: how to give 200 code to 302 redirect?
There is a bunch of nginx + php-fpm. nginx config - slightly modified yii config ( yiiframework.ru/doc/guide/ru/quickstart.apache-ngi... ). At one of the addresses on the php side, a redirect of the form header( "Location: " . $url ); is made, it is necessary that the redirect give the client a 200 code instead of 302. How can this be done?
Answer the question
In order to leave comments, you need to log in
<?php
http_response_code(200);
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question