title: Redirecting to index page
body: <p>I tried redirecting my play.php(main page) to my index page, where the user needs to log in. It works. However, users can't log into the play.php, because it keeps redirecting. I used the codes below to achieve that. I placed it immediately after the body tag()</p>
  
  <pre><code>&lt;?php 
    header("Location: index.php"); 
    exit();
  
  ?&gt;
  </code></pre>