aspidagrant Posted September 2, 2014 Share Posted September 2, 2014 Is there a way to redirect the affiliate links to /cart.php instead of the root domain? If you use an affiliate link it doesn't even go to the WHMCS affiliate system URL, it goes to the root domain. We have WHMCS set up in a subfolder, so I would prefer it to redirect there. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted September 2, 2014 Share Posted September 2, 2014 Yes, you can pass the gocart=1 variable and it will redirect to your shopping cart. https://yourwhmcsdomain.com/*?gocart=1 0 Quote Link to comment Share on other sites More sharing options...
aspidagrant Posted September 3, 2014 Author Share Posted September 3, 2014 Thanks @jclarke. Where does that go in relation to this statement: // perform redirect header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$whmcs->get_config('Domain'),true,301); - - - Updated - - - Never-mind I was able to use this code: header('Location: ' . $CONFIG['SystemURL'] . '/cart.php' . $params); It seems to be working fine, do you see any issues with this code? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.