Jump to content

How? Admin Login Redirect to different page using hook


cdeese8

Recommended Posts

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

On 2/21/2018 at 14:50, cdeese8 said:

Would the below hook work properly?

why not try it and see? 9_9

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. :idea:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated