问题描述:

How to redirect a user from one domain to another after he has logged in ?

Using PHP

网友答案:

If you are runnig Apache this could be done through a .htaccess file, you could also send the user to a specific page when he/she logges in and at the top of that file use:

 header('Location: http://your-redirection-uri.com';
 exit();
网友答案:
header('Location:http://www.xyz.com/abc.php');

xyz.com is new domain

write some session start code on abc.php file and then redirect a page where u actually want to redirect

网友答案:

Use header()

header("Location: http://www.example.com");
网友答案:

You could use:

header("Location: http://www.somedomain.com");

Hope it helps

相关阅读:
Top