I had to learn this today so I thought I'd explain how it works in newbie talk.
Keep in mind this is explained elsewhere but if you REALLY are new to this whole thing this should help you a bit more.
Double meta refresh both...
Let's say you have a site name Website Hosting - Mysite.com
Contents of 2.php are:
Obviously your long ass affiliate link goes where LONG-ASS-AFFILIATE-LINK-GOES-HERE is. Leave the \ at the end.
In your HTML code instead of an affiliate link then just put this:
<a href="www.mysite.com/go/1.php">Linky</a>
Keep in mind this is explained elsewhere but if you REALLY are new to this whole thing this should help you a bit more.
Double meta refresh both...
- hides your referred
- cloaks your links
Let's say you have a site name Website Hosting - Mysite.com
- Create a directorly at the root called something like /go or a generic sounding name
- Create two files and upload them to that directory. For the sake of demonstrating I'll call them 1.php and 2.php
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://mysite.com/go/2.php\">";
?>
Contents of 2.php are:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://LONG-ASS-AFFILIATE-LINK-GOES-HERE\">";
}
?>
Obviously your long ass affiliate link goes where LONG-ASS-AFFILIATE-LINK-GOES-HERE is. Leave the \ at the end.
In your HTML code instead of an affiliate link then just put this:
<a href="www.mysite.com/go/1.php">Linky</a>