Implementing redirection for logged in users
Take user to the login page when switching site