Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    July 25th, 2009
    Posts
    4
    url masking using htaccess or php redirect
    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!

  2. #2
    ABW Founder Haiko de Poel, Jr.'s Avatar
    Join Date
    January 18th, 2005
    Location
    New York
    Posts
    21,609
    Continued Success,

    Haiko
    The secret of success is constancy of purpose ~ Disraeli

  3. #3
    Newbie
    Join Date
    July 25th, 2009
    Posts
    4
    Hi haiko,

    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 :

    Code:
    <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?

    Code:
    <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>
    and in htaccess?

    Code:
    Redirect /godaddy http://www.***********/click-0000000-0000000


    For text links

    Code:
    <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"/>
    Front end
    Code:
    <a href="http://www.mysite.com/godaddy1" target="_top">Go Daddy $12.99 SSL Sale! </a>
    in htaccess

    Code:
    Redirect /godaddy1 http://www.***********/click-0000000-0000000

    Questions :

    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

  4. #4
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    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

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano
    Affiliate Tools: Datafeed Merge

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. how to pass a url parameter to a php redirect?
    By Zdig in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: April 27th, 2006, 11:06 PM
  2. 301 redirect using htaccess question
    By ~Michelle in forum Midnight Cafe'
    Replies: 5
    Last Post: February 26th, 2006, 09:16 PM
  3. .htaccess redirect
    By Affiliate Ian in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: September 2nd, 2005, 07:39 PM
  4. .htaccess & 301 Redirect
    By ~Michelle in forum Search Engine Optimization
    Replies: 2
    Last Post: March 11th, 2005, 12:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •