Need Help With Blog Redirect Codes

by 4 replies
5
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
#programming #blog #codes #redirect
  • 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.
    • [1] reply
    • What are your remarks supposed to imply? That it's not OK to use redirects?

      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.
  • 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.
  • 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.

Next Topics on Trending Feed

  • 5

    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