Hope that this fixes the redirect loop error.