Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Using Redirects to Cloak Affiliate Links

kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:

Using Redirects to Cloak Affiliate Links

I just finished watching video 6 of week 7 about creating redirects for wordpress. I have 14 affiliate links I use on my site. This video shows you how to do one. I guess I need to do 14 separate ones? If so, how do I label them and keep them all separate from the time I create them on my desk top and upload them to the site? You can't make 14 files all labeled index.php can you?
I don't really understand how this works. If I do one of these for one vendor, then, will all of the pages that I use to link to that vendor automatically get redirected or cloaked?

Kurt
  • 0
PremiumMember
gradyp
Posts: 848
Joined: 28 Jun 09
Trust:
Kurt,

Just put the index.php file into it's own folder with the name of the product that you want to link to, or something similar. Just remember, no spaces in the name. Then, all you have to do is upload the folders, and the index file inside should also upload.

Example: If you wanted to do an affiliate link for Affilorama, put the index file into a folder named Affilorama and upload the Affilorama folder.

Grady
  • 0
Have questions about creating images? Want an image created for you? Check out my site at www.GradyPruitt.com/welcome-affilorama-friends
 
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Thanks Grady,
I'll do it

Kurt
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
I seem to be having a couple of problems in my attempts to do the redirect. 1) My Mac won't let me save anything with the .php extension, it has to have an rtfd on it also. as in .php.rtfd
2) My PC is converting all saved index.php into windows media player files

has any body got any ideas as to how I get around this?

Kurt
  • 0
PremiumMember
gradyp
Posts: 848
Joined: 28 Jun 09
Trust:
One workaround might be to save it to the txt (or similar plain text file format) on your computer and rename it with the php extension after uploading it to your sight. This should work, but could take a while to do if you have a lot of files to upload.

Grady
  • 0
Have questions about creating images? Want an image created for you? Check out my site at www.GradyPruitt.com/welcome-affilorama-friends
 
PremiumMember
gradyp
Posts: 848
Joined: 28 Jun 09
Trust:
Also, I don't have a lot of personal experience with Mac, but in working with both Windows and Linux, I don't think I've ever had a problem not being able to save something to a specific extension. Make sure you are using a plain text editor, and not a word processor. WPs add formatting to files that don't upload well. That's the only thing I can think of where it wouldn't allow you to save in the php extension.

Though you might check options/preferences settings... Could be something there... Maybe...

Just a couple of ideas to look at...

Grady
  • 0
Have questions about creating images? Want an image created for you? Check out my site at www.GradyPruitt.com/welcome-affilorama-friends
 
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Thanks Grady,

before I try all that, may I ask that someone send me that redirect code so that I can copy and paste it? Some one pointed out to me if I don't have it right then goofy stuff like that can happen. Quite frankly I have only been able to guess at copying that code. there are places in it that appear to have a space or two between characters, so I have just guessed at it. I'm willing to bet that my guesses are wrong. Here's what I got.. I will put in underscores to represent where I believe to be spaces.
<?php
header(_'Location:_http://youraffiliatelink.goes.here.com'_)_;
?>
Is that correct?

Kurt
  • 0
PremiumMember
jmpruitt
Posts: 3918
Joined: 19 Jun 09
Trust:
here you go
  • 0
Do you want to use your online content to Educate others, inspire them to action, and run a profitable business for yourself and your family? I can help you get started
https://www.youtube.com/channel/UCUvDlGM242pI2D5TUOCWd7A
 
PremiumMember
jmpruitt
Posts: 3918
Joined: 19 Jun 09
Trust:
just change the url as needed to suit your url
  • 0
Do you want to use your online content to Educate others, inspire them to action, and run a profitable business for yourself and your family? I can help you get started
https://www.youtube.com/channel/UCUvDlGM242pI2D5TUOCWd7A
 
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
thankyou sir,

I see the one you sent has an exclamation point instead of a question mark and it is minus some of the spaces. I'll give it a try.

Kurt
  • 0
PremiumMember
jmpruitt
Posts: 3918
Joined: 19 Jun 09
Trust:
i got mine from aletta and it is working on all mine :)
  • 0
Do you want to use your online content to Educate others, inspire them to action, and run a profitable business for yourself and your family? I can help you get started
https://www.youtube.com/channel/UCUvDlGM242pI2D5TUOCWd7A
 
PremiumMember
gradyp
Posts: 848
Joined: 28 Jun 09
Trust:
You can also look under tools in the Affilorama site. There's a tool that will generate the code for you.

Grady
  • 0
Have questions about creating images? Want an image created for you? Check out my site at www.GradyPruitt.com/welcome-affilorama-friends
 
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Thanks a lot guys, I'm on it

Kurt
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Well guys,
I just tried all these suggestions out and they don't work for me. No matter what I do, even if I save the file as index.txt and then change it after I upload it, it still turns into a windows media player and no redirect happens. I've tried putting it into the folder before I upload it and it still happens. I guess I have to take my PC somewhere to have it looked at.

Kurt
  • 0
PremiumMember
gradyp
Posts: 848
Joined: 28 Jun 09
Trust:
Did you upload it to the server where your page is being hosted and then rename it to php? That shouldn't turn it into a different file type.

Grady
  • 0
Have questions about creating images? Want an image created for you? Check out my site at www.GradyPruitt.com/welcome-affilorama-friends
 
PremiumMember
jmpruitt
Posts: 3918
Joined: 19 Jun 09
Trust:
i save mine as .php when i first save it. never tried to change it later
  • 0
Do you want to use your online content to Educate others, inspire them to action, and run a profitable business for yourself and your family? I can help you get started
https://www.youtube.com/channel/UCUvDlGM242pI2D5TUOCWd7A
 
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
I uploaded it via filezilla into public html just like the instructions in the video that I have followed many times before. I renamed it after I uploaded it with filezilla.

I think I'm going to give the html code a try. By the way, when you get your hop link they also give you another code that begins with "ahref" is this the code that does the redirect? I ask because I noticed in the affilo rama generator tool that it will also generate a code for html and it starts with "ahref"

are the other methods of redirects all uploaded like the instructions for the index.php? Or do I need to learn separate protocol for each one? How do I do html? and how does using it differ, in the final outcome, from php?

Kurt
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
I just tried the html code, and uploaded it following the same procedure as the index.php and that did not work. In other words I saved it as index.html and uploaded it in a named folder into the public html file and apparently that is not the correct way to do that, because it made no difference.

Kurt
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Okay folks I just got the index .php changing into a windows media player problem solved. I have uploaded an index.php in a named folder up to my site in the public html file and I see no difference. When I mouse over that particular vendors hyperlink it still shows my clickbank link. What am I doing wrong?

Kurt
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
I have the windows media player conversion problem solved and I uploaded all 14 of my redirects. When I test them by typing the url into the browser it works fine, but I see no evidence of it cloaking my link when I mouse over my hyperlinks. I thought this was supposed to show.... your url/affiliate, or, if you put in the "Recommends" folder like I did.... your url/Recommends/affiliate

Did I misunderstand something , because I really don't see it cloaking my link.

Kurt
  • 0
PremiumMember
paulita
Posts: 201
Joined: 12 Mar 09
Trust:
Hi,
I just tried to did like Aleta did on the video but i have the following message everytime i type on my brower:
"Parse error: syntax error, unexpected ':' in /home/anarim/public_html/myphrase/index.php on line 2"
i don´t know what is wrong with my : and i also tryed to use: ", instead of ´ to see if that was the problem, but it didn´t work either.
I don´t know what more can i change.What i wrote was:
<?php
header( ´Location: myaffiliatlinkhere´ );
?>
Is something wrong with my html language?
Thanks.
  • 0
kurtw56
Posts: 75
Joined: 29 Apr 09
Trust:
Anarim,

I finally got mine working, it looks like your code is okay but try copying and pasting this.



if that doesn't work, start a new topic about this and you will get more attention.

Kurt
  • 0
PremiumMember
paulita
Posts: 201
Joined: 12 Mar 09
Trust:
Hi Kurt,
Thanks for your advice, but it didn´t work to me.I´m going to start another topic.
thanks.
  • 0
info1013
Posts: 12
Joined: 21 Jan 15
Trust:
I am so confused in my redirect links. I do not know if this is correct.
1. I click promote at clickbank.
2. there are 2 codes
3. the instruction is to copy and paste the 2nd code to my website.

Is that correct?
Thanks for your help.
  • 0
Site Admin
maryt
Posts: 3224
Joined: 16 Apr 12
Trust:
Hi,

You are referring to:

1st code: your hoplink
2nd code: the html version of your hoplink

Both links can be used for your website. But if you are using Affilotheme for Wordpress and you want to use redirect/cloak, you just need to get the hoplink of the vendor (1st link) then go to your Wordpress Admin> Affilotheme> Redirect to cloak/redirect your link.

There is also a complete instruction for you in your Affilorama account for this: Our Products> My Products> Affilotheme> Video 8: How To Redirect And Cloak Your Affiliate Links
  • 0
Not sure which Affilorama tool you need? Take the quiz! https://www.affilorama.com/redirect/quiz

Web: https://www.affilorama.com
Twitter: https://twitter.com/affilorama
Facebook: https://www.facebook.com/affilorama

***
"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment." ~Sidhhartha Guatama
 
info1013
Posts: 12
Joined: 21 Jan 15
Trust:
Thank you Maryt!

If I understand it correctly ...the first link is the same as the first code?
Thanks!
  • 0
Site Admin
maryt
Posts: 3224
Joined: 16 Apr 12
Trust:
info1013 wrote:Thank you Maryt!

If I understand it correctly ...the first link is the same as the first code?
Thanks!


Yes they are the same, the only difference is that the second link has the complete HTML version.
  • 0
Not sure which Affilorama tool you need? Take the quiz! https://www.affilorama.com/redirect/quiz

Web: https://www.affilorama.com
Twitter: https://twitter.com/affilorama
Facebook: https://www.facebook.com/affilorama

***
"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment." ~Sidhhartha Guatama
 

This topic was started on Jul 24, 2009 and has been closed due to inactivity. If you want to discuss this topic further, please create a new forum topic.