- This topic has 3 replies, 2 voices, and was last updated 12 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Wp affiliate: user (affiliate ID) and redirect
Hi, I’ve two questions:
1. When a new affiliate registered his affiliate link is ?ap_id=username
For privacy this is not good for any persons.
There is possibility to assign a number as affiliate cod? Or other? example ?ap_id=casualnumber
2. I find this instructions for url
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’);
== MY ANSWERS
What kind of redirect made wp affiliate? 301?
Thanks
1) Yes, you can use numbers as the affiliate ID. simply tell your affiliates to use a number when they sign up.
2) It does a 302 redirect as it is not really a permanent 301 redirect. However, if you want to make it a permanent 301 redirect that can be done too.
Thanks.
And how I can modify 302 in 301 redirect?
Thanks
Open the “wp_affiliate_platform1.php” file and search for the following line of code:
header('Location: ' . $target_url);
Once you find it, change it to the following:
header("HTTP/1.1 301 Moved Permanently");
header('Location: ' . $target_url);
That should change it to a 301 redirect.