cdeese8 Posted February 21, 2018 Share Posted February 21, 2018 May you please provide some wisdom on how I could redirect admin login to a different page for WHMCS 7? https://mydomain.com/whmcs = login link and after login I would like to be redirected to: https://mydomain.com/whmcs/systememaillog.php Do you know of any helpful hooks that could achive this? Thanks in advance, --- The login redirect would only be for the super WHMCS admin - not clients Would the below hook work properly? Link to comment Share on other sites More sharing options...
brian! Posted February 21, 2018 Share Posted February 21, 2018 On 2/21/2018 at 14:50, cdeese8 said: Would the below hook work properly? why not try it and see? the answer is that it likely will if you change ClientLogin to AdminLogin... <?php # Force Admin Redirection After Logging In function hook_forceAdminLoginRedirect($vars){ global $CONFIG; # Add Redirection URL Here $URL = "http://www.bbc.co.uk"; echo '<meta http-equiv="refresh" content="0; url='.$URL.'">'; exit; } add_hook("AdminLogin", 1, "hook_forceAdminLoginRedirect"); ?> in your case, change the BBC link to your specific page. 1 Link to comment Share on other sites More sharing options...
cdeese8 Posted February 26, 2018 Author Share Posted February 26, 2018 hilarious. it really was that simple!! thanks bud! Link to comment Share on other sites More sharing options...
Recommended Posts