How to spoof the referrer?

Domain mysite.ru redirects to a subdomain sub.mysite.ru.

How to make referrer, which is obtained mysite.ru was transferred to a subdomain sub.mysite.ru?

I will quote the answer of Yandex:
The fact that in this case, was redirected referent is replaced by the original referrer of the site mysite.ru. In this case we recommend You contact your webmaster or another specialist to organize the transfer of the original referrer on Your landing page, without substitution.


Here we are talking about "no substitute".. not really understand what is he talking about
June 27th 19 at 14:57
1 answer
June 27th 19 at 14:59
You contact the webmaster or another specialist

this can be done programmatically transfer the Ref a get parameter or something.
when prompted mysite.ru
1. get $_SERVER['HTTP_REFERER']
2. to do a redirect on sub.mysite.ru while passing the previously obtained $_SERVER['HTTP_REFERER'] using the GET parameter
3. after the redirect to make the substitution $_SERVER['HTTP_REFERER'] to the one that was passed via GET

so? - christina commented on June 27th 19 at 15:02

Find more questions by tags htaccessHTMLPHP