Great question — answering as the UphillTech team:
After several hours, I managed to find a solution for this. Using the lastest version of whmcs 7.0.2 inside aff.php, at the bottom of the file just before : // perform redirect header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$whmcs->get_config('Domain'),true,301); https://www.example.com/client/aff.php?aff=xxx&url=othersection I've added this code for relative url's: if ($whmcs->get_req_var('url')) { header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$whmcs->get_config('Domain')."/".$whmcs->get_req_var('url'),true,301); die(); } or this code for absolute url's: if ($whmcs->get_req_var('url')) { header("HTTP/1.1 301 Moved Permanently"); header("Location:...
Full answer by paulalexandru: https://stackoverflow.stackexchange.com/a/41151999 (CC BY-SA 3.0).
Need it done for your business? UphillTech.