5 replies
hi warriours

could some one please explain to me a little better of how to put this code into place.

<?php
header("location:http://www.YourAffiliateLinkHere.com");
exit;
?>

Replace your affiliate link. Save the file as php. Just use the product name that you're promoting. Example: Product-Name.php

Upload it via FTP or cpanel to your directory. I named my directory "recommends" so the cloaked link will be mysite.com/recommends/product-name.php

I'm unsure of where to upload the php file if some one could shed a little light on this

thanks alot

Stephen
#cloaking #link
  • Profile picture of the author polimedia
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[310518].message }}
    • Profile picture of the author steve m
      but I have no reccomends directory...? do I have to make a new directory some how?
      Signature
      {{ DiscussionBoard.errors[310536].message }}
  • Profile picture of the author globalpro
    Hi Stephen,

    What they mean is to create a folder called recommends (or call it likes, loves, whatever) then upload your php ridirect to the folder.

    You would end up using the link:

    http://www.yourdomain.com/recommends/product.php

    Try it.

    Thanks,

    John
    {{ DiscussionBoard.errors[310555].message }}
  • Profile picture of the author steve m
    Ok nice one, I have made the new diretcory thanks and also uploaded the saved file to it but still my hop link still shows. does this code work even?

    thanks for help
    Signature
    {{ DiscussionBoard.errors[310572].message }}
  • Profile picture of the author bladerunner
    Hi Steve
    Are you trying to cloak your domain to jump straight to an afilliate page?
    {{ DiscussionBoard.errors[310678].message }}
  • Profile picture of the author Andrew E.
    Hi Steve,

    What that code does is redirect your user to any location you want - it is one half of the cloaking effect: when the user hovers over the link, their status bar shows the location of the link. Since you are using that php code on a file on your site, they would see yourdomain.com/recommends/product.php.

    When the user clicks through, they will still see where you pointed them through in their address bar.

    If you want to hide a hoplink from the address bar, you need to use a page with two frames, one set at 100%, the other at 0%.

    Someone has a link to a free tool that will do the frames for you - you just plug in the code. I don't know it offhand, though.
    {{ DiscussionBoard.errors[310760].message }}

Trending Topics