title: PHP redirect when directly approaching?
body: <p>I'm working on this PHP page wich includes different pages like header.php .
  What I want is when you go to header.php, it redirects you to the homepage. I tried using header but when I include it, it keeps redirecting me.
  I think it's possible with an if statement with $_SERVER, but I don't know how.</p>
  
  <p>Anyone can help me out? Thanks in advance!</p>