Hello!
The task is to send a person to the other (to the subdomain) when the person first visits the site, so that he can return later. I understand that you need to do business with CASH.
I try this:
if (!isset($HTTP_COOKIE_VARS["red"])) { setcookie("red", "yes", time()+60*60); header ("Location: http://поддомен.домен.ru/"); }
Does not work.