Results 1 to 4 of 4
August 23rd, 2009, 11:31 PM #1
url masking using htaccess or php redirect
- Join Date
- July 24th, 2009
I know this is one of the contentious topic surrounding links, so please try not to go into that debate again of whether it "should or should not be done".
Will appreciate some kind advice for a newbie on the "How" can it be best done. Whether it 'Can' be done, I've got that answered when I looked at the links at one of the biggest AM around - fatwallets.
Thanks in advance to everyone!
August 24th, 2009, 01:36 PM #2Continued Success,
The secret of success is constancy of purpose ~ Disraeli
August 24th, 2009, 08:48 PM #3
Originally Posted by Haiko de Poel, Jr.
- Join Date
- July 24th, 2009
thanks for that, i am actually looking for specific advice on how to redirect affiliate links properly, i have some experience with htaccess redirects and should have little problems setting them up.
for instance the below CJ link in a basic redirection setup :
<a href="http://www.***********/click-0000000-0000000" target="_top"> <img src="http://www.*************/image-0000000-0000000" width="200" height="200" alt="Go Daddy $7.49 .com sale 200x200" border="0"/></a>
For the front end link, is this correct?
<a href="http://www.mysite.com/godaddy" target="_top"> <img src="http://www.*************/image-0000000-0000000" width="200" height="200" alt="Go Daddy $7.49 .com sale 200x200" border="0"/></a>
Redirect /godaddy http://www.***********/click-0000000-0000000
For text links
<a href="http://www.************/click-0000000-0000000" target="_top">Go Daddy $12.99 SSL Sale! </a> <img src="http://www.***********/image-0000000-0000000" width="1" height="1" border="0"/>
<a href="http://www.mysite.com/godaddy1" target="_top">Go Daddy $12.99 SSL Sale! </a>
Redirect /godaddy1 http://www.***********/click-0000000-0000000
1. Are the structure of the above links correct?
2. If using both links, can I set the 2nd link above to go to /godaddy (instead of godaddy1?) and share the same Redirect line used for the first link? ie If I'm using multiple Go Daddy links and link types, can they all link to a single redirect line in htaccess?
3. the 1x1 image in the text link, what is it for and how does it affect tracking, especially in the redirection setup as above?
These are the questions that had me googling and reading the forums for the last week but found no clear answers on and any help here is greatly appreciated
April 29th, 2010, 06:48 PM #4
Even though this is an old thread, just wanted to answer the three questions.
1. Link structure okay? Yes, the link structure looks ok. Note to other readers: In the samples shown above, zeroes appear. The actual numbers were removed for privacy. Keep the actual numbers from CJ.com links.
2. Share a common redirect? Yes, technically, you can share the redirect by just using /godaddy (rather than /godaddy and /godaddy1). The link will redirect as expected. However, the CJ URL's for the text ad and for the image ad are different (they have different CJ AID numbers, although shown above as all zeroes). By using only one /click-AID-PID (e.g.: the one for the text ad), the clickthrough statistics at CJ.com will be incorrect (e.g.: the clicks for the text ad will be inflated, while clicks for image ad will be deflated to zero). However, best to use both redirects; that way you can tell which ad (the text ad or the image ad) was clicked and lead to a sale.
3. Purpose of 1x1 image? The 1x1 image in the text link is used by CJ to count an impression of the text ad. Leave the SRC of that IMG as is; no change of the SRC is required. Technically, you can remove that 1x1 image but then the CJ impressions statistics for the text ad will be deflated (will be zero if you remove it everywhere). The clickthrough counter will not be affected by removing the 1x1 image. However, best to keep the image so that impressions statistics are accurate.
See also: ShareASale generic .htaccess redirect
per: David CusimanoAffiliate Tools: Datafeed Merge
By Zdig in forum Programming / Datafeeds / ToolsReplies: 8Last Post: April 27th, 2006, 10:06 PM
By ~Michelle in forum Midnight Cafe'Replies: 5Last Post: February 26th, 2006, 08:16 PM
By Affiliate Ian in forum Programming / Datafeeds / ToolsReplies: 4Last Post: September 2nd, 2005, 06:39 PM
By ~Michelle in forum Search Engine OptimizationReplies: 2Last Post: March 11th, 2005, 11:18 AM