title: header("Location:/"); redirect works on localhost, but not on remote server
body: <pre><code>if (condition)
  {
  #lol. Some code here
  }
  else
  {       
  header("Location:/");//i'm trying to redirect to the root
  }
  </code></pre>
  
  <p>Redirect works perfectly on localhost, but not on remote server.
  May be it's all better to use <code>$_SERVER</code>?
  This redirect wouldn't work even if i choose file in the same directory as file with redirect.
  Hope you help me :)</p>