title: Header Location dont work on live server but works on localhost
body: <p>I have this code which relocates a user to index.php if they set the value of a dropdownmenu
  on an irrelevant page to set it for please check my code.</p>
  
  <pre><code>if(isset($_GET['d'])&amp;&amp;empty($_GET['d'])===false){
          $cur_page=$_SERVER['PHP_SELF'];
          $current_page = substr($cur_page,1);
          $possible_page = array('terms.php','contact.php','about.php');
  
          if(in_array($current_page,$possible_page)){
                 header('Location:/index.php?d='.$_GET['d'].'');
         exit();
      }else{
         echo $_GET['d'];
      }
  </code></pre>
  
  <p>It works fine on my localserver but on live server it does not ?</p>