Force login causing redirect loop from subdomain to primary site

Force login causing redirect loop from subdomain to primary site. Need to figure out if this plugin will work, if can get it to not redirect or... I got to decide. uses the mu-plugin folder.