Need Help With Blog Redirect Codes

2 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 aandersen
    if I understand you correctly, you are almost there.

    go into your FTP app
    make a new directory on your domain, e.g., domain.com/product1
    make a new index.php file with the same type of code
    upload the new index.php to the new directory you just created, so that it is here domain.com/product1/indexp.php
    now when you link to domain.com/product1 they will be redirected to wherever that index.php points them

    you can repeat this as many times as you want
    Signature

    signature goes here

    {{ DiscussionBoard.errors[2851757].message }}
    • Profile picture of the author john smith1
      Originally Posted by aandersen View Post

      if I understand you correctly, you are almost there.

      go into your FTP app
      make a new directory on your domain, e.g., domain.com/product1
      make a new index.php file with the same type of code
      upload the new index.php to the new directory you just created, so that it is here domain.com/product1/indexp.php
      now when you link to domain.com/product1 they will be redirected to wherever that index.php points them

      you can repeat this as many times as you want
      I agree with aandersen, Using FTP we can redirect the blog
      {{ DiscussionBoard.errors[2852382].message }}

Trending Topics