Answer the question
In order to leave comments, you need to log in
LocalRedirect not working on nginx?
Hello.
The site on Bitrix moved from apache2 to nginx + php5-fpm, + at the same time fastened an ssl certificate and set up a redirect from http to https in nginx.
After the move, LocalRedirect stopped working, it was googled to add to dbconn.php -> $_SERVER["SERVER_PORT"] = "443";
however, this did not solve the problem.
Maybe someone faced similar?
Answer the question
In order to leave comments, you need to log in
Rewrote all LocalRedirect in the code to header . Works!
Why LocalRedirect does not work is not clear.
It is not clear what might not work there. Regular spitting out the Location header
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question