http : // www.outsidesite .com /information/*varible*/return
which would then turn into this link
http : // www. mysite.com/redirect/go.php?http : // www.outsidesite .com /information/*varible*/return
then once clicked it would direct to
http : // service.blahblah.outsidesite .com /blah/blah/information/*varible*/return/
I understand on how to add the files to get a normal redirect going but don't know how to get it to insert the link variable into the right spot for the correct destination site (as their are a few and each varies). Any help or incite on this would be greatly appreciated!
""turns into" = When I post the story, the link would automatically turn into that link
"return" = just an example url, probably not the best word to use.
-----------------------
What I'd like to do is to add a master link so to speak. If I or someone posted a link it would catch it and add in my redirect so if someone entered
[example.com...]
The site would pick it and add the following
in front of it
[mysite.com...]
The displayed and clickable link would then look like this
[www....] mysite.com /redirect/go.php?http://www.enteredurl.com
---------------------------------------
Next task
With that "master link" (http : //www. mysite.com /redirect/go.php?) in front of all links, how can i use the redirect to read the link and add the appropriate affiliate/referal link, if i have an account with that site?
So, if someone entered
[example.com...]
and I happen to have a referal/affiliate account with them, the redirect would see it's going to example.com, and send them via my customized affiliate/referal link?
[edited by: jatar_k at 4:40 pm (utc) on May 30, 2004]
[edit reason] generalized urls [/edit]
Ok, I'll restate it, but for reference, what I am saying in earlier posts is""turns into" = When I post the story, the link would automatically turn into that link
Already I don't understand what you're saying.
What I'd like to do is to add a master link so to speak. If I or someone posted a link it would catch it and add in my redirect
Again, all these gratuitous ambiguous pronouns don't help clarity. Instead of saying "it" say what you're referring to. I have something similar to dyslexia so when there's noise in the communication my comprehension clicks off.
so if someone entered
[example.com<...]If *someone* entered? I thought *you* were the one "posting" a link?
I stopped reading at this point, I'm lost again.
What I want to do is the same thing this site (Webmaster World) does
When I type [example.com...] in, they add
http://www.webmasterworld.com/red.cgi?f=13&d=3639&url=
infront of the links. If you click the link it sends you through the redirecter first and then sends you to the site.
How do I do this on my site? I'm thinking it has to be placed somewhere in the .htaccess file but do not know where or what code to add.
Here's the HTML for your page:
<HTML><BODY><A href="/redirect.cgi?http://example.com">Go to Example.com</A>
</BODY></HTML>
-----------
And here's the Perl script ( the file <redirect.cgi>):
#!/usr/bin/perl -w
print "Location: $ARGV[0] \n\n";
At this point I assume you will have a followup question of some kind....