Need Help With Blog Redirect Codes

4 replies
I need help with redirect codes. I want to use one blog, and be able to redirect my email subscribers through that blog, and directly to several different affiliate offers. I am trying to eliminate the long ugly affiliate links, that scream, I'm trying to sell you something, from the emails I send out on a variety of subjects, with different offers.

I bought a neutral domain, and I can put a product related phrase after it like getmoreinfo.com/lose-weight

I have managed to figure out how to get the home page of the blog to redirect to an affiliate product, by inserting my redirect code into the index.php file.

My question is how to I get other pages to redirect to affiliate products. I made a second page on this blog, and I have poked around using my ftp program, and can't seem to find where I would put the redirect code, to make it redirect to a different affiliate program.

I have a hostgator reseller account. I do see another index.php file in the wp-content folder, but I am not sure if that is the place.

This is the redirect code I am using
<?php
header( 'Location: http://myaffiliate.productid.hop.clickbank.net/?tid=18' ) ;
?>

Thanks Glenn
#blog #codes #redirect
  • Profile picture of the author phpbbxpert
    Seeing that you are from the US like me, you might want to have a look at this
    FTC Publishes Final Guides Governing Endorsements, Testimonials

    Here is the gist of it in someone elses article
    FTC Notice

    You can do what you want, I just thought I would bring it to your attention.
    {{ DiscussionBoard.errors[2852043].message }}
    • Profile picture of the author SteveJohnson
      Originally Posted by phpbbxpert View Post

      Seeing that you are from the US like me, you might want to have a look at this
      FTC Publishes Final Guides Governing Endorsements, Testimonials

      Here is the gist of it in someone elses article
      FTC Notice

      You can do what you want, I just thought I would bring it to your attention.
      What are your remarks supposed to imply? That it's not OK to use redirects?

      Originally Posted by gjd6599 View Post

      I need help with redirect codes. I want to use one blog, and be able to redirect my email subscribers through that blog, and directly to several different affiliate offers. I am trying to eliminate the long ugly affiliate links, that scream, I'm trying to sell you something, from the emails I send out on a variety of subjects, with different offers.

      I bought a neutral domain, and I can put a product related phrase after it like getmoreinfo.com/lose-weight

      I have managed to figure out how to get the home page of the blog to redirect to an affiliate product, by inserting my redirect code into the index.php file.

      My question is how to I get other pages to redirect to affiliate products. I made a second page on this blog, and I have poked around using my ftp program, and can't seem to find where I would put the redirect code, to make it redirect to a different affiliate program.

      I have a hostgator reseller account. I do see another index.php file in the wp-content folder, but I am not sure if that is the place.

      This is the redirect code I am using
      <?php
      header( 'Location: http://myaffiliate.productid.hop.clickbank.net/?tid=18' ) ;
      ?>

      Thanks Glenn
      It appears that you're using WordPress. If that's true, all you have to do is to use one of the many redirection/cloaking plugins that are available. Most make it relatively easy to use redirects.

      You'll definitely want to stay out of your theme files and use a plugin instead.
      Signature

      The 2nd Amendment, 1789 - The Original Homeland Security.

      Gun control means never having to say, "I missed you."

      {{ DiscussionBoard.errors[2853881].message }}
  • Profile picture of the author lknielsen
    what you should do is go to the root directory on your account (public_html) and create a folder for each product you want to promote, ex: getmoreinfo.com/gain-muscle then put an index.php file with the redirect code in that folder. Just create separate folders for with redirect scripts for each product you promote.
    {{ DiscussionBoard.errors[2853731].message }}
  • Profile picture of the author Maynard_Webmaste
    Did you mean you want to redirect blog pages to an affiliate product? If your site is powered by Wordpress then you can use a FREE plugin called Page Links To. You can redirect a page to any URL you want, this includes affiliate products.
    {{ DiscussionBoard.errors[2857471].message }}

Trending Topics