Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Hide the Affiliate ID from the URL after the visitor lands on the landing page

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › Hide the Affiliate ID from the URL after the visitor lands on the landing page

Tagged: affilaite id, affiliate id, Cloaked Affiliate Link, default id, display sales widget, hide affiliate id, hide affiliate id in the url, url, url redirect

  • This topic has 23 replies, 10 voices, and was last updated 5 years, 2 months ago by wzp.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • September 18, 2010 at 6:30 am #1868
    amin007
    Participant

    Say for example your landing page URL is the following:

    http://www.example.com/my-product-page

    The affiliate URL for this page will look like the following:

    http://www.example.com/my-product-page/?ap_id=xyz

    Now, if you want to hide the “?ap_id=xyz” portion from the URL after the visitor lands on the page then do the following:

    1) Open the “wp_aff_advanced_configs.php” file (this file is in the “wp-affiliate-platform” plugin folder) and search for the following line:

    define('WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL', '0');

    2) Once you find it simply it with the following line:

    define('WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL', '1');

    That should do the trick.

    April 17, 2012 at 10:27 pm #24457
    crazedpilot
    Member

    I can’t find this file nor the ‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’ code anywhere on our server in another file. Where is this lcoated in the current version of the code? Thanks!

    April 18, 2012 at 2:51 am #24458
    admin
    Keymaster

    What version of the affiliate plugin are you using?

    April 27, 2012 at 12:52 am #24459
    crazedpilot
    Member

    Sorry I missed the question you send me – 4.8.9

    April 27, 2012 at 12:59 am #24460
    crazedpilot
    Member

    in addition, if that’s NOT the current version, I’m confused on how to upgrade since I can’t seem to find anywhere to download it now even with my username and password – your guidance is appreciated. Thanks!

    April 27, 2012 at 5:02 am #24461
    Peter
    Member

    Hi, It’s actually not the current version. Please get a new copy of the plugin from the following link:

    https://support.tipsandtricks-hq.com/update-request

    September 21, 2012 at 9:08 pm #24462
    Frank
    Member

    Hey guys, this file seems to have changed over time, so what is the instructions to make the affiliate links disappear?

    Frank

    September 22, 2012 at 7:31 am #24463
    admin
    Keymaster

    Are you looking in the "wp_aff_advanced_configs.php" file? What version of the affiliate plugin are you using?

    September 22, 2012 at 4:58 pm #24464
    Frank
    Member

    The client is using a slightly older version – 4.9.9.1 of the wp aff software. But the file in question, “wp_aff_advanced_configs.php”, I cannot find.

    I know that they need to upgrade, but I also know that I’ve upgraded these guys since this post was created, so they should have this file.

    September 22, 2012 at 11:58 pm #24465
    admin
    Keymaster

    Load a fresh copy of the plugin and that should take care of it:

    https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins

    January 28, 2013 at 3:34 am #24466
    Greenster
    Member

    Hi,

    I followed this and it’s not working for me. I just bought the plugin today so I should have the latest version. I have cleared the cache. Any clue as to why?

    I should point out that the default landing page URL is a subdomain of the URL where the plugin is installed.

    Thank you,

    J

    January 28, 2013 at 10:25 pm #24467
    admin
    Keymaster

    So are you saying that the plugin is installed in [www.example.com] and you are doing something on [sub-domain.example.com]? If that is the case then first read the following posts to understand the capability of a WordPress plugin:

    https://support.tipsandtricks-hq.com/forums/topic/wp-multisite-install-and-plugin-behavior

    January 28, 2013 at 11:43 pm #24468
    Greenster
    Member
    March 5, 2013 at 12:21 am #24469
    dougsloss
    Member

    Hi, I’m trying to also hide the Affiliate ID from the URL after the visitor lands on my landing page. Your initial post from 2 years ago states the following:

    Say for example your landing page URL is the following:

    [http://www.example.com/my-product-page]

    The affiliate URL for this page will look like the following:

    [http://www.example.com/my-product-page?ap_id=xyz]

    Now, if you want to hide the “?ap_id=xyz” portion from the URL after the visitor lands on the page then do the following:

    1) Open the “wp_aff_advanced_configs.php” file (this file is in the “wp-affiliate-platform” plugin folder) and search for the following line:

    define(‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’, ‘0’);

    2) Once you find it simply it with the following line:

    define(‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’, ‘1’);

    That should do the trick.

    Is this still the recommended course of action? And will the affiliate still get credit for the sale even though their id is not visible in the URL address?

    Thank you!

    March 5, 2013 at 5:23 am #24470
    admin
    Keymaster

    Yes, you can still use this feature as you have explained it. Yes, affiliates will continue to get commission even when you use this feature.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ