Added redirect to secure if on non secure