I'm trying to use a refresh that includes an extra precaution at the end, basically a "dump URL" that the user is sent to if for some reason his referrer hasn't been blanked yet.
php1.php on domain 1:
php2.php on domain 2:
As you can see, a user clicks the ad and is sent to php1.php on domain1.com, then sent to php2.php on domain2.com, and from there is sent to the offer if his referrer has been blanked and sent to the dump URL if it hasn't. In my case I'm trying to send them to a content site I set up in the same niche.
It works perfectly in Firefox, but not in IE or Safari. It gets to php2.php and then stops, and both browsers show a blank page with the following source:
Anyone know why it isn't sending them to the correct link?
I was also under the impression that you couldn't blank it in Safari, so I don't understand why it's showing the offer link to Safari users and not the dump URL.
php1.php on domain 1:
PHP:
<html>
<head>
<meta http-equiv="refresh" content="0;url=http://domain2.com/php2.php" />
</head>
</html>
PHP:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://offerlink.com";
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://dumpURL.com";
}
?>
It works perfectly in Firefox, but not in IE or Safari. It gets to php2.php and then stops, and both browsers show a blank page with the following source:
PHP:
<meta http-equiv="refresh" content="0;url=http://offerlink.com
I was also under the impression that you couldn't blank it in Safari, so I don't understand why it's showing the offer link to Safari users and not the dump URL.