заголовок ( «Location: /»); редирект работает на локальном хосте, но не на удаленном сервере
if (condition)
{
#lol. Some code here
}
else
{
header("Location:/");//i'm trying to redirect to the root
}
Redirect отлично работает на локальном хосте, но не на удаленном сервере.
Может быть, все лучше использовать$_SERVER
?
This redirect wouldn't work even if i choose file in the same directory as file with redirect.
Hope you help me :)