title: php redirect() not working on online server
body: <p>I had redirected my page like:</p>
  
  <pre><code>redirect(base_url().'user/login/?redirect=site/cart_steps/steps');
  </code></pre>
  
  <p>and it works fine in localhost and when i uploaded it to server it didnt redirect. I checked all the codes and above this all code executes. But when it comes to redirect the page doesnt redirects. I also tried</p>
  
  <pre><code>redirect(base_url().'user/login?redirect=site/cart_steps/steps');
  redirect(base_url().'user/login');
  header('Location:'.base_url().'user/login?redirect=site/cart_steps/steps');
  header('Location:'.base_url().'user/login');
  </code></pre>
  
  <p>but the page didn't redirect? and also i checked out this <a href="https://stackoverflow.com/questions/4183075/the-header-function-is-not-working-on-online-server">The header function is not working on online server?</a>
  but it cant help me too.... can any one explain what is the problem here....</p>