I would like to redirect a customer to the login page if they are not logged in from any page on the site. I am trying to limit access to a subdomain to a specific customer
I would recommend checking if you are already on the login page, if so don't run code. You can check this if your on a page called login.php. Simple and clean solution