title: header() works with wamp but not on server
body: <p>So i've finally uploaded my work from wamp to my actual website.</p>
  
  <p>Everything seems to runs completely fine except <code>header();</code></p>
  
  <p>Example:</p>
  
  <p>I have so if you're not logged in and try to access the logout url, it would redirect you to the login page.</p>
  
  <p><code>if(!isset($_SESSION['loggedin'])){
  header("Location: index.php?page=login");
  exit();</code></p>
  
  <p>on my localhost on wamp, it works perfect. Although on my website, it doesn't redirect.</p>
  
  <p>I saw a post about this that recommended to use javascript redirect instead but i feel like it's unnecessary since there must be a way to sort this issue with using php.</p>
  
  <p>RESOLVED: <strong>The host had the wrong version running and took 3 days to respond.</strong></p>