Is there a way to redirect or refresh page in PHP which will not lose the referrer?
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
And
A Visitor must be able to press BACK button in his/her browser to go back to Page1.php
*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
I tried both of the below.
With This:
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
And This:
header( "refresh:5;url=wherever.php" );
I really need a way out for this. Spent 7 hours straight to find the solution. But I'm unable to find.
Can somebody help me with this?
Thanks,