This content has been marked as final. Show 6 replies
Okay. This is affiliate marketing. So he doesn't want to have to build a new page for each product he sells. Instead he wants the site to figure out what affiliate product was clicked on and then record it and redirect it.
well, you could just pass a productid to the widgets.cfm page, run a
query there to get product data if you need to (i.e. to get a link to
the actual url), run another query to record a click on the link on
previous page, then cflocate the user to actual product url...
We use something like this setup:
http://www.hissite.com/redirect.cfm?product=5&loc=[url encoded URL]
1) Log link click
2) forward on to URL
You may want to consider adding some sort of token to make sure no one else uses the script as an open HTTP relay. You could use Encrypt() to base64 / HEX encrypt the data to make it really secure.
I don't think I'm making myself clear. He wants NO question marks in the URL.
The one he pointed me to was tinyurl.com I'm not sure how they do this but your link will look like this http://www.tinyurl.com/something
This then does a redirect to the proper site. So the only thing I can figure is it has a custom 404 page that catches it, reads the "something" part of it, and then sends the request on.