Results 1 to 7 of 7
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Posts
    396
    URL getting chopped
    When I send out a very long and ugly CJ URL from a direct link on my page

    href="http://www.***********/click-xxxxxxx-xxxxxxxx?url=http://www.stacksandstacks.com/scripts/clients.html?name=cjref&product_page=108183_touch-control-double-sided-lighted-mirror-5x-and-1x"

    it works (slowly) but it does work - I get to the correct product page

    when I send the same long ugly URL from :

    header("Location: Long_Ugly_URL"); something strips the URL to:

    http://www.***********/click-xxxxxxx...andstacks.com/
    or at least I end up at the stacksandstacks home/search page not the product page I seek

    Note: other, shorter CJ links and LS links work both ways

    Any thoughts?

    Charles

  2. #2
    general fuq mrbshouse's Avatar
    Join Date
    January 18th, 2005
    Location
    Argieville
    Posts
    1,381
    is it possible that the mysql field needs to be extended? I'm not sure how or why your sending it from "header"

  3. #3
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    You might try URLENCODING the url= parameter. For instance:

    http : // www. ***********/click-xxxxxxx-xxxxxxxx?url=http%3A%2F%2Fwww.stacksandstacks.com%2Fscripts%2Fclients.html%3Fname%3Dcjref%26product_page%3D108183_touch-control-double-sided-lighted-mirror-5x-and-1x

    The unencoded version won't necessarily work with everything. The encoded version should.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  4. #4
    Full Member
    Join Date
    January 18th, 2005
    Posts
    396
    Michael - I tried the URL as it comes on the data feed (encoded) and after running it through rawurldecode() (the decoded version) -- I couldn't see any change in behavior between the two versions.

    A while ago I remember that you recommended a site to display the whole header tracking information - do you remember which site that was??? -- this time I'll bookmark it!

    Charles

  5. #5
    Newbie
    Join Date
    June 17th, 2007
    Posts
    21
    You need to remove the "?" between clients.html AND name=cjref

    Your redirect should look like this:
    PHP Code:
    header("Location: http://www.***********/click-xxxxxxx-xxxxxxxx?url=http://www.stacksandstacks.com/scripts/clients.html&name=cjref&product_page=108183_touch-control-double-sided-lighted-mirror-5x-and-1x"); 

  6. #6
    Newbie
    Join Date
    June 17th, 2007
    Posts
    21
    Actually, ignore that last post. I see that's wrong.

    Try this:
    PHP Code:
    $url urlencode("http://www.stacksandstacks.com/scripts/clients.html?name=cjref&product_page=108183_touch-control-double-sided-lighted-mirror-5x-and-1x");
    header ("Location: http://www.***********/click-xxxxxxx-xxxxxxxx?url=" $url); 
    i hope that helps...

  7. #7
    Full Member
    Join Date
    October 22nd, 2006
    Posts
    200
    If you are using $_GET[] in your redirect script try adding ?<?php echo $_SERVER['QUERY_STRING'] ?> after the url.

  8. Newsletter Signup

+ Reply to Thread

Posting Permissions

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