A
A
Andrey Mikhalev2016-12-21 10:56:46
PHP
Andrey Mikhalev, 2016-12-21 10:56:46

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

2 answer(s)
A
Andrey Mikhalev, 2016-12-22
@Endru9

Rewrote all LocalRedirect in the code to header . Works!
Why LocalRedirect does not work is not clear.

O
Oleg Maksimenko, 2016-12-22
@olegprof

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 question

Ask a Question

731 491 924 answers to any question