title: WordPress header location redirect
body: <p>having a problem here with WordPress. I want to redirect the page to a specific .php file inside a folder (php/adminpage.php) whenever <code>$_SESSION</code> variable is equals to 1. Let's say the session variable is 1:</p>
  
  <pre><code>&lt;?php
   if ((isset($_SESSION['login']) &amp;&amp; $_SESSION['login'] == '1')) {
   header ("Location: php/adminpage.php");
  ?&gt;
  </code></pre>
  
  <p>But the browser returns "Not Found". Any ways to get it to work?</p>
  
  <p>UPDATE [SOLVED]: Using the full path works. Thanks to @andrewsi. Working code:</p>
  
  <pre><code>&lt;?php session_start();  
  if ((isset($_SESSION['login']) &amp;&amp; $_SESSION['login'] != '')) {
  header ("Location: wp-content/themes/euro/php/adminpage.php");
  }
  </code></pre>
  
  <p>?></p>