29 May 09 9:18 am
Don't understand the PHP Redirect
Sorry, I know the PHP Redirect thing is old news to most of guys here but I'm having difficulty understanding how this works based on the video lesson: "How to hide your affiliate link with redirects". I also did a Google search on the topic AND a search on the forums here and the questions I have are just not being addressed.
Say I want to change this: http://example123.rspanish.hop.clickbank.net/
so user sees this: example.com/recommends/rocketspanish/ (http removed)
So I create a php file called index.php that contains only this:
And upload to my site.
This is where all of the instructions I've seen stop. "Just upload it and you're done."
But the instructions say nothing about how to code the link that people actually see on the website.
Do I put the phony link in the html file like this:
//other html code
<a href="http://example.com/recommends/rocketspanish/>rocket spanish</a>
// other html code
But this is a phony link that goes nowhere? How would clicking on this link invoke the code in index.php ?
What if I have several links on my html page, how does the index.php file know which
link I'm cloaking?
What if I want to cloak several links in my html file. Do I create a separte index.php file for each link?
It might be easier if someone could post an example: But not just the index.php file, I need to see the whole thing including the html file with more than one link that you would want to cloak. Could be real simple like foo and bar type stuff.
Or please direct me to a place here or on the web that goes beyond just the php file and your done example. Again I already looked here and all I found was the simple create index.php file-upload-done explanation.
Last edited by ampie g
on 20 Jan 10 2:25 am, edited 1 time in total.
Reason: removed http as link is only used for illustration & not an actual link