title: How to redirect non logged in users to Login page on Wordpress?
body: <p>I know this is a question asked million times but I can't find an answer that is either fitting the version of Wordpress now and/or my particular case.</p>
  
  <p>I have a Wordpress website with Buddypress installed on it.</p>
  
  <p>I want that :
  - Not logged in users can see only the page wp-login.php
  - Logged in users can access the whole website</p>
  
  <p>I just can't figure it out, it is impossible. Either I change the site address or assign a page, or fuctions... Nothing works, all the time an error or a 404 page error etc...</p>
  
  <p>Basically : you arrive on the website, you are not logged in = Wp-Login.php, if you are logged in page "members"</p>
  
  <p>Thank you !</p>