Page 1 of 1

redirect after login

Posted: Sat Apr 25, 2015 11:19 am
by uske
Currently, the login module of Joomla has only one way of forwarding after login. It would not be a good solution to have to offer multiple logins on the website.

I need the functionality 'redirect after login'
to route to defined different pages depending on the user rights (group or account).

The existing extension 'redirectafterlogin' is bad, it's not really deal with the permissions.

Unfortunately, I am not even able to create such functions :( .

Re: redirect after login

Posted: Sat Apr 25, 2015 12:38 pm
by Webdongle

Re: redirect after login

Posted: Sat Apr 25, 2015 2:18 pm
by uske

Re: redirect after login

Posted: Sat Apr 25, 2015 3:17 pm
by Webdongle
Those links work for me and the links off those pages

Re: redirect after login

Posted: Mon Aug 03, 2015 10:46 am
by camy_cent
Try this code to redirect after login attempt:

$redirectUrl = '&return='.$redirectUrl;
$joomlaLoginUrl = 'index.php?option=com_users&view=login';
$finalUrl = $joomlaLoginUrl . $redirectUrl;

Re: redirect after login

Posted: Fri Nov 11, 2016 5:55 pm
by GOPCSOFT
Add 301 Redirect code via .htaccess , It would be permanent redirection
After login specify your target address .
here is the code modify according to your requirement

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

Re: redirect after login

Posted: Thu Nov 17, 2016 6:37 am
by jigneshkumar
Above links are working .
kindly can you plz clear cache of your browser?

thanks

Re: redirect after login

Posted: Wed Feb 08, 2017 11:17 am
by shahzan
two links are usable. thanks again