Cloaking Links

by 1 replies
2
I'm having that hardest time trying to cloak my links.

I learned of a strategy, which involves creating a folder, creating a txt document within that folder, containing a <php something redirect. Then uploading this folder to my website server.

To create a cloaked link that reads like this...http://www.mydomain.com/recommends/product name recommends being the folder, and product name being the php document within the folder containing the redirect to the affiliate link.

For some reason this is just not working, I get the TS404 error when I try to test my cloaked link.

Not sure what I'm doing wrong.

Maybe the php code is wrong, or I'm uploading it to the wrong place on my server.

I use bluehost for my hosting, wordpress as my website platform, and filezilla to upload my files.

Any advice? A better way?

Not interested in budurl, tinyurl or anything like that, I want to do this within my own site.
#search engine optimization #cloaking #links
  • Yeah what you can do is create a folder on your server

    Inside put a index.php file

    Inside the index.php put

    <?PHP
    $m = $_GET['m'];
    if ($m == "") {$link = "http://www.yoursite.com/";}
    if ($m == "3pr") {$link = "http://www.youraffiliatelink.com";}
    if ($m == "4ji") {$link = "http://www.youraffiliatelink.com";}

    header("Location: $link"); // Jump to the hiddden affiliate URL above
    exit();
    ?>

    Now just put on your website in the place of the url

    www.yourdomain.com/folder/index.php?m=3pr

    Now if you want to add more links just add another like above..

    www.yourdomain.com/folder/index.php?m=4ji

Next Topics on Trending Feed

  • 2

    I'm having that hardest time trying to cloak my links. I learned of a strategy, which involves creating a folder, creating a txt document within that folder, containing a <php something redirect. Then uploading this folder to my website server.