V
V
Vadim Timoshenko2020-02-03 23:21:52
Nginx
Vadim Timoshenko, 2020-02-03 23:21:52

How to create REDIRECT_URL?

I communicate with the developer of one of the modules for CMS.
In the correspondence he writes:


Perhaps the following fields are missing in the SERVER parameter in php:
HTTP_HOST
REDIRECT_URL
REQUEST_URI
They must be added in the server settings.


Output: empty. Servers on NGINX. How to create REDIRECT_URL? And what should this setting be?
echo $_SERVER['REDIRECT_URL'];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hajmer, 2020-02-03
@Hajmer

To begin with, write down the essence in more detail.
What do you want to implement? , the user visits http://mysite , he is redirected from the root directory ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question