title: PHP Redirect Without Losing Refererrer URL
body: <p>Is there a way to redirect or refresh page in PHP which will not lose the referrer?</p>
  
  <p>For Example: Page1.php is being redirected to Page2.php So in this case, there is no referrer at all. I want to get referrer on Page2.php</p>
  
  <p>And</p>
  
  <p>A Visitor must be able to press BACK button in his/her browser to go back to Page1.php</p>
  
  <p>*When I redirect from Page1.php to Page2.php then Google Analytics or other website Analytics solutions should be able to track the Referrer who referred Page2.php</p>
  
  <p>I tried both of the below.</p>
  
  <p>With This:</p>
  
  <pre><code>header( 'Location: http://www.yoursite.com/new_page.html' ) ;
  </code></pre>
  
  <p>And This:</p>
  
  <pre><code>header( "refresh:5;url=wherever.php" );
  </code></pre>
  
  <p>I really need a way out for this. Spent 7 hours straight to find the solution. But I'm unable to find.</p>
  
  <p>Can somebody help me with this?</p>
  
  <p>Thanks,</p>