View Single Post
Old 03-23-2017, 08:54 PM  
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,513

Quote:
Originally Posted by Cyber Fucker View Post
Gfy techs help!

I made a page with simple redirection, something similar to:

Code:
header("HTTP/1.1 301 Moved Permanently");
header("Location: $_SERVER['QUERY_STRING']", true, 301);
exit;
It works as intended, but I can't see the referring url in affiliate programs stats.
Easiest way I know is to do a HTML Meta refresh. The referer gets passed that way.

Code:
<meta http-equiv="refresh" content="0; url=page_to_go_too">
So, if you are doing it via php, something like this:

Code:
<html>
<head>
<meta http-equiv="refresh" content="0; url=<?php echo $_SERVER['QUERY_STRING']; ?>"> 
</head>
<body>
</body>
</html>
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote