{"id":4056556,"date":"2013-08-22T15:28:51","date_gmt":"2013-08-22T15:28:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/multiple-url-redirection-when-login-whithin-the-same-website\/"},"modified":"2016-08-21T04:12:19","modified_gmt":"2016-08-21T04:12:19","slug":"multiple-url-redirection-when-login-whithin-the-same-website","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/multiple-url-redirection-when-login-whithin-the-same-website\/","title":{"rendered":"Multiple URL redirection when login whithin the same website.."},"content":{"rendered":"<p>Hi all, I have a question, I have in my database about 900 people whish are separate in 2 &#8220;roles&#8221; whish are administrator and customers.<\/p>\n<p>On my site I have multiple pages but I would like to when someone login, to redirect the user to the page administrator (if he is an admin) or to the customers page (if he logs himself with a customer login and password)..<\/p>\n<p>I don&#8217;t know if it&#8217;s possible..<\/p>\n<p>Another question which could be easier is how can I make a redirection when a user logout ? I would like that when you logout you are automatically redirected to the home page..<\/p>\n<p>Thank you for your kind help,<\/p>\n<p>Sincrely,<\/p>\n<p>Maxou<\/p>\n<p>https:\/\/wordpress.org\/plugins\/sidebar-login\/<\/p>\n","protected":false},"template":"","class_list":["post-4056556","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4056556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4056556\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4056556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}