T
T
Tech2021-07-07 17:54:39
PHP
Tech, 2021-07-07 17:54:39

How to find which php is redirecting?

Bitra runs on nginx+php-fpm.
Somewhere in her instance there is a redirect of urls from uppercase to lowercase. I already found out in my previous question here that there are no redirects in the nginx settings for this. That is, the point is somewhere in php (or js) bits.
How can I find which php file is responsible for this? What occurrence to look for in the code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2021-07-07
@winer

If the matter is in Bitrix, then you need to look for calls to the LocalRedirect function . Add logging to the body of the function (writing to the debug_backtrace output file).
LocalRedirect is declared in the bitrix/modules/main/tools.php file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question