http://yoursite.com/recommends...

11 replies
Hey all,

Just a quick question. How do you redirect an affiliate link as,

http://yoursite.com/recommends...

ie. how do you get the recommends (or any other word) up there?

Cheers,

Johnson.
#johnson #johnson kee
  • Profile picture of the author Jason Pereira
    Create a folder in your cPanel under root, call it whatever you want.

    Under that folder create php files for each product you want to promote.

    So bloggingtothebank.php , wsooffer.php and so on.

    The code you need to use:

    Code:
    <?php
    header("location:http://www.youraffiliatelink.com/?id=123");
    exit;
    ?>
    And then you can link to http://www.yoursite.com/recommends/b...gtothebank.php

    Or...

    create a folder called productname under your recommends folder, and use the same code above in a file called index.php

    You can then link to www.yoursite.com/recommends/wsooffer
    {{ DiscussionBoard.errors[744549].message }}
    • Profile picture of the author jaykay21089
      Originally Posted by Jason Pereira View Post

      Create a folder in your cPanel under root, call it whatever you want.

      Under that folder create php files for each product you want to promote.

      So bloggingtothebank.php , wsooffer.php and so on.

      The code you need to use:

      Code:
      <?php
      header("location:http://www.youraffiliatelink.com/?id=123");
      exit;
      ?>
      And then you can link to http://www.yoursite.com/recommends/b...gtothebank.php

      Or...

      create a folder called productname under your recommends folder, and use the same code above in a file called index.php

      You can then link to www.yoursite.com/recommends/wsooffer
      Hey Jason,

      You'll probably ignore this but I'm sure it'll get a lot of traffic to a website you own.

      Could you show how to do that above in a video? Or do you know any videos that do that?

      Cheers,

      Johnson.
      {{ DiscussionBoard.errors[770644].message }}
    • Profile picture of the author jaykay21089
      Originally Posted by Jason Pereira View Post

      Create a folder in your cPanel under root, call it whatever you want.

      Under that folder create php files for each product you want to promote.

      So bloggingtothebank.php , wsooffer.php and so on.

      The code you need to use:

      Code:
      <?php
      header("location:http://www.youraffiliatelink.com/?id=123");
      exit;
      ?>
      And then you can link to http://www.yoursite.com/recommends/b...gtothebank.php

      Or...

      create a folder called productname under your recommends folder, and use the same code above in a file called index.php

      You can then link to www.yoursite.com/recommends/wsooffer
      Hey Jason,

      I'm almost there. When you're making the php file, do just use notepad and when you're saving it, do you just call it productname.php? Because I did that and for some reason or another, it's not working...

      Cheers,

      Johnson.
      {{ DiscussionBoard.errors[923601].message }}
  • Profile picture of the author greenovni
    Andy Fletcher's free link cloaker does this for you. Free Link Cloaker

    PS. Andy is one of us
    {{ DiscussionBoard.errors[744568].message }}
    • Profile picture of the author DerrickMarkotter
      Another way is to create redirects in the .htaccess file.

      Redirect /recommends/productone product1.com
      Redirect /recommends/producttwo http://product2.com/?=youraffiliatecode

      This way they're all in one place, so it's easy to update them if necessary.
      The '/recommends' folder does not actually need to exist.

      Here is a blog post which goes into a bit more detail:
      Using .htaccess Redirects for Affiliate Links .htaccess

      It's probably a good idea to add the '/recommends' folder to the robots.txt disallow list.
      {{ DiscussionBoard.errors[744596].message }}
    • Profile picture of the author jaykay21089
      Originally Posted by greenovni View Post

      Andy Fletcher's free link cloaker does this for you. Free Link Cloaker

      PS. Andy is one of us
      Hi greenovni,

      Is there a way to contact Andy Fletcher here on the Warrior Forum? I emailed him from freelinkcloaker.com a couple weeks back but he hasn't replied yet.

      Cheers,

      Johnson.
      {{ DiscussionBoard.errors[770649].message }}
  • Profile picture of the author Lokesh Sharma
    Banned
    Simply make a new folder under public_html in cPanel.

    Then you need to create a PHP file with the following code in it:

    Code:
    <?php 
    echo "<meta http-equiv="refresh" content="0;url=http://websiteurl.com">"; 
    ?>
    That's it.

    - Lokesh Sharma
    {{ DiscussionBoard.errors[745395].message }}
  • Profile picture of the author Darrel Hawes
    Originally Posted by jaykay21089 View Post

    Hey all,

    Just a quick question. How do you redirect an affiliate link as,

    http://yoursite.com/recommends...

    ie. how do you get the recommends (or any other word) up there?

    Cheers,

    Johnson.
    If you have a Wordpress site, install the Redirection plugin and you can do what you want in about two seconds. Simple.
    Signature
    Darrel Hawes - Blog
    {{ DiscussionBoard.errors[770859].message }}
  • {{ DiscussionBoard.errors[771751].message }}
  • Profile picture of the author jaykay21089
    Actually no problem. I didn't know the address was case-sensitive. cheers.

    Johnson.
    {{ DiscussionBoard.errors[923609].message }}
  • Profile picture of the author Snurtl
    I use GoCode plugin for Wordpress... works great

    Can't post working links yet but here is the url

    webmaster-source.com/gocodes-redirection-plugin-wordpress/
    {{ DiscussionBoard.errors[923619].message }}

Trending Topics